[Bug]: Timeout during the screenshots downloading
Describe the bug
Since yesterday, on my account, I have a new UI interface. Since then, every time I run the script, I have a timeout when trying to do the screenshot. I tried to switch my account back to the old reddit interface, just in case, issue is still there.
Reproduction Steps
Just run the script on the shortscarystories subreddit
Expected behavior
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Downloading screenshots of reddit posts... │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Launching Headless Browser...
Logging in to Reddit...
Skipping translation...
Something went wrong!
Something went wrong with making the screenshots! Do you want to skip the post? (y/n) n
Do you want the error traceback for debugging purposes? (y/n)y
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the Discord community. │
│ Version: 3.2.1 │
│ Error: Timeout 30000ms exceeded. │
│ =========================== logs =========================== │
│ waiting for locator("[data-test-id=\"post-content\"]") │
│ ============================================================ │
│ Config: {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom': 1.0, 'background': {'background_video': 'minecraft', │
│ 'background_audio': 'lofi', 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': False, 'background_thumbnail_font_family': 'arial', 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': │
│ {'voice_choice': 'tiktok', 'random_voice': True, 'elevenlabs_voice_name': 'Bella', 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED', 'python_voice': '1', │
│ 'py_voice_num': '2', 'silence_duration': 0.3, 'no_emojis': False}} │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Screenshots
System Information
Operating System : Ubuntu 22.04 Python version : Python 3.10.12 App version / Branch : 3.2.1
Checklist
- [X] I have searched the open issues for duplicates.
- [X] I have shown the entire traceback, if possible.
Additional Context
No response
if this bug gets ignored i m pissed
@cyber523 there are several threads on discord about this as well, hopefully there will be a fix soon :)
I am also looking into it right now, already fixed the first image for the post title, but still strugeling with the comments, because now all comment elements also contain their child elements inside of them, so need to find a way to exclude those, for the title I just changed the page.locator('[data-test-id="post-content"]') on line 180 and line 185 to page.locator(f'#t3_{reddit_id}'), still trying to get the comments to show up, only got the text of the comment right now by using this: page.locator(f'#t1_{comment["comment_id"]}-comment-rtjson-content').screenshot(
path=f"assets/temp/{reddit_id}/png/comment_{idx}.png"
)
run this pip install moviepy --upgrade and then restart your device. It should work
This has nothing to do with moviepy, the issue comes from the new Reddit interface.
run this pip install moviepy --upgrade and then restart your device. It should work
This has nothing to do with moviepy, the issue comes from the new Reddit interface.
Yes, indeed. And it does make sense because they changed the html classes and ids, and just changed the code overal.
run this pip install moviepy --upgrade and then restart your device. It should work
This has nothing to do with moviepy, the issue comes from the new Reddit interface.
Yes, indeed. And it does make sense because they changed the html classes and ids, and just changed the code overal.
still dosent work
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.
Issue closed due to being stale. Please reopen if issue persists in latest version.
Why has there still not been a fix for this?
is there a fix?