RedditVideoMakerBot
RedditVideoMakerBot copied to clipboard
Issue while finalizing program
Launching Headless Browser...
Traceback (most recent call last):
File "C:\Users\codeine\OneDrive\Desktop\RedditVideoMakerBot-master\main.py", line 19, in
download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
File "C:\Users\codeine\OneDrive\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 26, in download_screenshots_of_reddit_posts
page.goto(reddit_object["thread_url"])
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\sync_api_generated.py", line 7413, in goto
self._sync(
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright_impl_sync_base.py", line 88, in _sync
return task.result()
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright_impl_page.py", line 493, in goto
return await self._main_frame.goto(**locals_to_params(locals()))
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright_impl_frame.py", line 122, in goto
await self._channel.send("goto", locals_to_params(locals()))
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright_impl_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "C:\Users\codeine\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright_impl_connection.py", line 63, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.reddit.com/r/AskReddit/comments/v2kd2q/what_movie_do_you_absolutely_love_yet_acknowledge/", waiting until "load"
Hi @MantisGalaxy
Change
page.goto(f'https://reddit.com{comment["comment_url"]}')
to
page.goto(f'https://reddit.com{comment["comment_url"]}', timeout=0)
in video_creation/screenshot_downloader.py
I hope you were able to resolve your issue as there has not been activity in this Issue, I will be closing this for the time being. Feel free to re-open the issue if it has not been solved!!
Happy Coding!