Reddit JSON rss Scraper 🚀
- Make sure you have Go installed on your system.
- Clone this repository:
git clone https://github.com/Alisalmasi/Reddit-JSON-Scraper-golang - Navigate to the project directory:
JSON-Reddit-Scraper-golang - Run the project:
go run main.go
- Feature 1: it can scrape the Link , Title and thumbnail of Reddit entries.
- Feature 2: an then it will format it into json.
- Feature 3: lastly it will save it in a mongodb database.
- Run the project.
- Make a POST request to
http://localhost:5000/parserwith the following json format: - { "url":"https://www.reddit.com/r/recipes/.json" }
- and it will return the first 25 entries and save them in database.
/parse(POST): Parses data from a provided URL and returns Reddit posts.
MONGO_URL: MongoDB connection URL.MONGO_DATABASE: Name of the MongoDB database.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.