Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r = requests.get("https://footdistrict.com/", headers= _headers , proxies = proxies)
- except:
- return None
- temp = r.text
- print (r.text)
- temp = temp.split(",S='")[1]
- temp = temp.split("'")[0]
- temp = str(base64.b64decode(temp).decode('utf-8')).replace("document.cookie", "return a").replace(
- "; location.reload()", "")
- token = execjs.compile("""
- function a(){
- """ + temp + """
- }
- """)
- cookie = token.call("a")
- cookie = {
- cookie.split("=")[0]: cookie.split("=")[1]
- }
- ERRORI
- Exception in thread Thread-2:
- Exception in thread Thread-12:
- Traceback (most recent call last):
- File "C:\Users\\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
- self.run()
- File "C:\Users\\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
- self._target(*self._args, **self._kwargs)
- File "c:/Users//Documents/monitor/footdistrict/main.py", line 141, in check_product
- r = make_request(link)
- File "c:/Users//Documents/monitor/footdistrict/main.py", line 111, in make_request
- utils = get_cookies()
- File "c:/Users//Documents/monitor/footdistrict/main.py", line 92, in get_cookies
- temp = temp.split(",S='")[1]
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement