2022-10-22 00:27:03 +02:00
2022-06-28 19:14:22 +02:00
2022-06-28 19:14:22 +02:00
2022-07-05 01:03:14 +02:00

IMG_20220705_005633

Given a subreddit name and a keyword, this script will return all posts from a specified listing (default is 'top') that contain the provided keyword.

Installation

git clone https://github.com/rly0nheart/reddit-post-scraping-tool.git
cd reddit-post-scraping-tool

Usage

python reddit-post-scraping-tool.py --keyword [keyword] --subreddit [subreddit name (without 'r/')]

Optional arguments

Option Argument Choices Usage
-l/--listing LISTING [controversial, hot, best, new, rising] listing: controversial, hot, best, new, rising (default: top)
-c/--limit NUMBER 1-100 results limit (default: 10)
-t/--timeframe TIMEFRAME [hour, day, week, month, year] timeframe: hour, day, week, month, year (default: all)
Description
Given a subreddit name and a keyword, this program returns all top (by default) posts that contain the specified keyword.
Readme MIT 6.9 MiB
Languages
Visual Basic .NET 71.4%
Python 28.4%
Dockerfile 0.2%