Failed to screenshot post!
owalida opened this issue ยท 5 comments
Hi,
I have this error
DevTools listening on ws://127.0.0.1:31664/devtools/browser/f7c15b66-6041-4a8d-b05a-d65c5b0e513c
โ Failed to screenshot post!
โฑ Processing post: what_anime_character_or_cartoon_character_would
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:31705/devtools/browser/481be9e0-a60b-4c16-8131-882dbe111bba
โ Failed to screenshot post!
โฑ Processing post: how_do_you_manage_your_anxiety
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:31742/devtools/browser/b589dc4e-8e09-49e2-aa65-8506887e08d1
โ Failed to screenshot post!
โฑ Processing post: how_do_you_know_that_youre_in_love
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:31784/devtools/browser/a3df946a-7d00-44ef-b36b-39d6f9afa58e
โ Failed to screenshot post!
I've added raise e
on line 72 of scraper.py like that
if bot.session_id:
bot.quit()
return data
except Exception as e:
raise e
if bot.session_id:
bot.quit()
return False
I still have the same issue
Ensure that you have a reddit.cookies
file accepting GDPR/cookies
I did exactly as you said for the cookies.
```
Go to tiktok.com
Sign in
Open DevTools (Ctrl + Shift + I)
Go to network tab
Reload page
In the filter box type: domain:tiktok.com
Select any request, preferably the last one in the list
Scroll down to Request Headers
Find the cookie header, right click and press copy value
Paste this into the tiktok.cookies file (create it if you do not have it)
Now i don't face any error at all but at the end of the excution nothing happen at all.
C:\Users\User\Desktop\tiktok-askreddit-main\tiktok-askreddit-main>python main.py
โฑ Processing post: whats_the_reason_you_have_been_banned_from_an
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:37908/devtools/browser/8413855d-ba81-4bff-81cd-630c0c3999db
โฑ Processing post: what_is_something_commonly_refrigerated_by
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:37959/devtools/browser/e554a0fe-c9f3-4531-b1bf-7467d561c486
โฑ Processing post: u_stubbed_your_toe_really_bad_whats_the_first
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38007/devtools/browser/d5f0d5f4-dfb4-4a33-a609-f4fb4e909237
โฑ Processing post: how_do_you_get_over_someone
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38051/devtools/browser/ceeac589-5da8-4ef7-808a-54547a63ff97
โฑ Processing post: what_brings_you_legitimate_joy_on_a_daytoday_basis
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38105/devtools/browser/1298fbfb-a97d-40cc-a3a2-32e561328301
โฑ Processing post: redditors_who_used_the_internet_back_when_it_was
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38169/devtools/browser/c72a82e0-1c6f-4cde-a60d-11e299860afa
โฑ Processing post: whats_the_first_thing_you_do_when_going_into_a
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38216/devtools/browser/c5c172ad-9c91-43db-8509-b2c972a4618a
โฑ Processing post: how_do_you_show_your_girlfriend_or_wife_that_you
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38267/devtools/browser/014f892d-3d58-4175-a96d-88a4818bd9c6
โฑ Processing post: what_incident_made_you_hate_your_group_of_friends
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38322/devtools/browser/b719d8ec-6aa9-4d08-aa72-d8596d19f8ac
โฑ Processing post: there_was_an_episode_of_the_twilight_zone_where_a
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38366/devtools/browser/e5ee60b8-0294-4ac8-9c4b-f25362316f5a
โฑ Processing post: astronomers_of_reddit_whats_the_most
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38409/devtools/browser/9d655bea-83b4-481a-9ec9-8d9afdd33121
โฑ Processing post: men_who_are_sure_of_not_wanting_kids_whats
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38455/devtools/browser/bb926ecd-8df7-49d2-9424-4c1b9f05fb9e
โฑ Processing post: whats_the_best_way_to_fuck_with_pushy
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38503/devtools/browser/e6978223-e601-4285-939c-66ae4a16fc89
โฑ Processing post: whats_a_fun_fact_about_you_that_can_be
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38552/devtools/browser/427d35b5-b7dc-4d68-8d2f-4aff92eea228
โฑ Processing post: whats_your_favorite_song_from_a_genre_you_dislike
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38633/devtools/browser/6997031d-e76d-4406-a4fc-6738a7ec181e
โฑ Processing post: what_type_of_person_do_you_absolutely_despise
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38687/devtools/browser/52b77187-9671-4174-920a-1de5d827ec33
โฑ Processing post: boomers_of_reddit_do_you_feel_responsible_for_any
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38734/devtools/browser/37f501e7-99b7-4a14-a122-6aa82f1cfc4e
โฑ Processing post: serious_adhd_redditors_what_have_you_done_to
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38785/devtools/browser/27b97f14-159b-4d50-9431-c285dce970b4
โฑ Processing post: if_you_could_bring_back_one_thing_from_the_past
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38831/devtools/browser/cd0b4890-60f6-47f9-9bfb-58803e374579
โฑ Processing post: whats_under_your_bed_right_now
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38878/devtools/browser/15e41566-210c-412d-bd04-341fad95bc2f
โฑ Processing post: what_is_your_favorite_theoretical_paradox_and_why
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38925/devtools/browser/479d135b-51ec-43a1-a991-ce9b6e60c131
โฑ Processing post: where_do_you_find_peace
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:38971/devtools/browser/8a73a601-579b-4bf0-af7c-80a7ca1227ca
โฑ Processing post: whats_an_invention_that_we_humans_would_be_better
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:39016/devtools/browser/9584efab-2325-42fd-add7-c771c31a5cb8
โฑ Processing post: whats_your_favourite_pokemon
๐ธ Screenshotting post...
DevTools listening on ws://127.0.0.1:39096/devtools/browser/2b2baf5f-f9d0-4af8-98b2-dc30b8b0a61c
C:\Users\User\Desktop\tiktok-askreddit-main\tiktok-askreddit-main>
Nothing at all on my tiktok account unfortunately
It is throwing an exception which is just getting passed in scraper.py
, the reason this is done is to ensure smooth unsupervised usage however to debug it simply insert raise e
at line 66 & 77
Hi,
I did it but same as previous message and no video uploaded.
Hello, try fetching the latest changes, make sure to install the new requirements and try again.