VinylScraper

What is it

A scraping bot used to get the newest reddit posts on a few different subreddits.

How to use it

Follow the instructions laid out here in the "Getting Started" section. When you have the client_id, secret, and name, throw those values in the default_app_info.txt for the client_id, client_secret, and user_agent, respectively.

You'll need to create an email that you can send emails from. You can follow these steps to create a gmail account for development. Once you have that email created, fill the default_app_info.txt file with that information. sender_email should be where the emails are coming from, so the email you just created. receiving_email should be wherever you want these emails sent to. sender_email_password is the plaintext password for the email account you just created. Lastly, for the subreddits field, put the subreddits you want to scan, separated by a comma. For instance, if you want to scan the VinylCollectors and VinylReleases subreddits, you would put in "subreddits=VinylCollectors,VinylReleases".

Now that your default_app_info.txt file has all the information it needs, rename that file to app_info.txt so the bot can read it.

Finally, fill the keywords.txt file with keywords you want to search for in the reddit posts. Each keyword should be on its own line.

Some useful things mostly for me:

https://itheo.nl/install-python-3-9-on-raspberry-pi

https://raspberrypi.stackexchange.com/questions/66782/how-to-install-openssl-1-0-2-on-raspberry-pi3/66788

https://www.afternerd.com/blog/how-to-send-an-email-using-python-and-smtplib/