Grawddit is a lightweight tool that fetches the top posts of the day from a specified subreddit on Reddit, focusing on those with the most upvotes.
git clone https://github.com/nyx6965/grawddit.git
cd grawddit
go build
grawddit -subreddit yourdesiredsubreddit -limit 10 -sort new
Replace yourdesiredsubreddit
with the name of the subreddit you want to scrape.
There is no support of scrapping images and videos yet. So that enter a subreddit the posts them.
docker build -t grawddit:latest .
docker run -v ./data:/app/data -t grawddit:latest
This requires docker to be installed on your machine. The data scraped by the tool is available in the data
directory post run completion.
The subreddit argument works as follows
docker run -v ./data:/app/data -t grawddit:latest -subreddit yourdesiredsubreddit -limit 10 -sort new
You can customize the project by modifying the source code or by passing command-line arguments:
-subreddit
: Specify the subreddit you want to scrape (e.g.,-subreddit worldnews
).
Feel free to contribute to the project by submitting bug reports or feature requests.
This project is licensed under the MIT License.
Happy scraping! 🚀