Setup
Config:
Create an "app password" for your Google account (https://support.google.com/accounts/answer/185833?hl=en) and add your Google username and app-specific password
in a config.yml
file. This is used to send yourself an email whenever
a match is found on a r/mechmarket post. See alert.rb
for details on how
this works.
Credentials in config.yml
:
username: ****
password: ****
Queries:
Add a list of keyword searches to perform on the titles of r/mechmarket posts to config.yml
:
queries:
- jelly key
- mito laser
Database:
Create the SQLite database which will store the history of r/mechmarket posts and will be used to perform intelligent full text searches:
mechmarket-migrate
Run
Fetch the latest posts from r/mechmarket and alert yourself via email if any of the posts match one of your queries:
mechmarket-run
Run this on a cron to alert yourself very quickly if something you're looking for is a available:
*/3 * * * * mechmarket-run >> /tmp/mechmarket.log 2>&1