alexlaverty / python-reddit-youtube-bot

Automated Reddit Youtube Video Bot
https://www.youtube.com/channel/UCzIwW92D_rM5_yvWBsquSbw
83 stars 19 forks source link

Adds Reddit Login to Playwright Reddit Comment Screenshotting #63

Closed alexlaverty closed 1 year ago

alexlaverty commented 1 year ago

Reddit seems to have made some changes lately to the site which has broken this scripts ability to screenshot reddit comments.

It was identified that when a user is logged in and when a user is not logged in, the reddit layout is different which is what is causing the screenshotting to break.

This PR adds in code so that when PlayWright launches the chrome browser it will perform a Reddit Login first using praw_username and praw_password that is specified in the config/auth.py file.

Once the browser logs in successfully the existing code is then able to screenshot the reddit comments again.