Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. import requests
  2. import re
  3. import time
  4. from bs4 import BeautifulSoup
  5. import base64
  6. print('ηΎεœ¨ζ™‚ι–“', time.strftime("%Y-%m-%d %H:%M", time.localtime()), '\n')
  7.  
  8. html=requests.get('https://www.manhuadui.com/manhua/guimiezhiren/417506.html')
  9. soup = BeautifulSoup(html.text, 'lxml')
  10.  
  11. key=re.search('chapterImages = .*;var chapterPath',html.text).group().replace('chapterImages = "','').replace('";var chapterPath','')
  12.  
  13. my_params = {'dataFormat': "Base64",'iv': "ABCDEF1G34123412",'keySize': "128",'mode': "CBC",'secretKey': "123456781234567G",'textToDecrypt': str(key)}
  14. aa=requests.post('https://www.devglan.com/online-tools/aes-decryption/', json=my_params,headers = {'user-agent': 'Mozilla/5.0 (Macintosh Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36'})
  15. #print(base64.b64decode(aa.json()['output']).decode("UTF-8"))
  16. output=base64.b64decode(aa.json()['output']).decode("UTF-8").replace('[','').replace(']','').replace('"','').replace('\\','')
  17. output=output.split(",")
  18. for i in output:
  19. if("http" in i): print(i)
  20. else:
  21. path=re.search('chapterPath = .*/";var chapterPrice',html.text).group().replace('chapterPath = "','').replace('";var chapterPrice','')
  22. print('https://mhcdn.manhuazj.com/'+path+i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement