Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.55 KB

README.md

File metadata and controls

42 lines (22 loc) · 1.55 KB

Action Shot

The Daily Basic-Bitch Quote (and Word a Day and Headline and Cartoon) Scraper

This is a script that parses content from r/quotes and tidies it up a little to make an ever-changing Quote poster, using content from the hive-mind that is the internet.

The quote is then displayed on the attached Waveshare 6inch HD ePaper.

The reason for using r/quotes rather than a curated database, is that the karma score on reddit is a really good way to ensure quotes that are interesting and topical.

The quality of the results depends on the adherence to convention in posts to r/quotes and the quality of the regex in the script. Currently the script is rarely producing garbled quotes, so it's ready for sharing.

As well as producing quotes, the script occasionally places other content on the epaper - to keep things interesting.

The script randomly chooses from 4 options:

  • Quote (from r/quotes)
  • Word of the Day (from wordsmith.org)
  • Headline (From The Guardian)
  • Cartoon (From The New Yorker)

Installation

First, clone this repository using

git clone https://github.com/llvllch/bbq

then:

cd bbq

Install the required modules using pip:

python3 -m pip install -r requirements.txt

Run the code using:

python3 quotey.py

To periodically run the script, set it as a cronjob