Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.

dark-nova/twitch_rss

Repository files navigation

Twitch Prime RSS Project

Overview

This project scrapes the Twitch Prime rewards page to generate a RSS feed of items.

⚠️ This repository will be archived before 2020. ⚠️

Live updates will also be pulled.

Usage

If you are having issues, you may run class_count.py to get an idea of which classes to scrape, although I find the script unnecessary now.

You may also run db.py before anything else to create the database, but that too is optional and redundant.

Run generate_feed.py to generate the feed.

Requirements

This code is designed around the following:

  • Python 3.6+
    • bs4 for scraping
    • selenium because the page only loads on "actual" browsers
    • feedgen for the RSS feed itself
    • other requirements

Setup

Pick and install a webdriver of your choice for selenium. Your webdriver should also match the installed browser. If you have issues choosing, you may try Firefox (geckodriver). They are tested for this project and run headless.

⚠️ Make sure your chosen webdriver and browser is in your $PATH.

Live Version

Pulled for archiving.

Disclaimer

This project is not affiliated with or endorsed by Twitch or Amazon. See LICENSE for more detail.