Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import re
- import time
- from bs4 import BeautifulSoup
- import base64
- print('ηΎε¨ζι', time.strftime("%Y-%m-%d %H:%M", time.localtime()), '\n')
- html=requests.get('https://www.manhuadui.com/manhua/guimiezhiren/417506.html')
- soup = BeautifulSoup(html.text, 'lxml')
- key=re.search('chapterImages = .*;var chapterPath',html.text).group().replace('chapterImages = "','').replace('";var chapterPath','')
- my_params = {'dataFormat': "Base64",'iv': "ABCDEF1G34123412",'keySize': "128",'mode': "CBC",'secretKey': "123456781234567G",'textToDecrypt': str(key)}
- 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'})
- #print(base64.b64decode(aa.json()['output']).decode("UTF-8"))
- output=base64.b64decode(aa.json()['output']).decode("UTF-8").replace('[','').replace(']','').replace('"','').replace('\\','')
- output=output.split(",")
- for i in output:
- if("http" in i): print(i)
- else:
- path=re.search('chapterPath = .*/";var chapterPrice',html.text).group().replace('chapterPath = "','').replace('";var chapterPrice','')
- print('https://mhcdn.manhuazj.com/'+path+i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement