🕷️
Reddit Scraper
Fetches the top posts from the r/python subreddit via Reddit's JSON API and stores them in a local SQLite database (redditnews.db).
Fetches the top posts from the r/python subreddit via Reddit's JSON API and stores them in a local SQLite database (redditnews.db).
Fetches the top posts from the r/python subreddit via Reddit's JSON API and stores them in a local SQLite database (reddit_news.db).
$ python -c "import grabnews; grabnews.reddit_get()"
Inserted
Inserted
Inserted
Inserted
Inserted
Inserted
Inserted
Inserted
Inserted
Inserted
Each Inserted line means one top post from r/python was written to reddit_news.db. Re-running the script prints Updated for posts already in the database.
pip install requests
python -c "import grabnews; grabnews.reddit_get()"