Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #8

Open
crafti12 opened this issue Jun 1, 2022 · 2 comments
Open

Error #8

crafti12 opened this issue Jun 1, 2022 · 2 comments

Comments

@crafti12
Copy link

crafti12 commented Jun 1, 2022

⏱ Processing post: germans_of_reddit_what_are_some_things_you_have
📸 Screenshotting post...
Traceback (most recent call last):
File "D:\Pobrane (na serio)\tiktok-askreddit_main_.py", line 61, in
asyncio.run(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "D:\Pobrane (na serio)\tiktok-askreddit_main_.py", line 56, in main
raise e
File "D:\Pobrane (na serio)\tiktok-askreddit_main_.py", line 33, in main
data = scrape(url)
File "D:\Pobrane (na serio)\tiktok-askreddit\scraper.py", line 78, in scrape
raise e
File "D:\Pobrane (na serio)\tiktok-askreddit\scraper.py", line 16, in scrape
bot.add_cookie({'name':cookie_data[0],'value':cookie_data[1],'domain':'reddit.com'})
IndexError: list index out of range

@crafti12
Copy link
Author

crafti12 commented Jun 1, 2022

@edde746

@Kasperny
Copy link

Kasperny commented Jun 4, 2022

[PL]
Po folderze widzę, że jesteś polakiem, a ja miałem ten sam błąd więc udzielę swojej rady. Przy kopiowaniu "sent cookies", zamiast np. set-cookie skopiuj header cookie bądź cookies (zarówno na tiktoku jak i reddicie).
[ENG]
I had a similar issue so I'll give you my advice. When copying "sent cookies", instead of for example: set-cookie copy the cookie or cookies header (For tiktok and reddit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants