Scrapy based crawler which crawls newspaper.
- docker
- docker-compose
- First clone the repository. as it contains newspaper3k as a submodule of this repository,follow:
$ git clone --recurse-submodules https://github.com/rafatbiin/newspaper-crawler.git
- Open terminal inside of the project folder and run the docker-compose file:
$ docker-compose up -d
- Use any MongoDB Client to check the DB at
localhost:9004
- The logs will be saved in a directory called tmp inside the runner package.
- The default crawling depth is set to 2. If you need to change that, you'll find the CRAWL_DEPTH environment variable inside the docker-compose.yml file.
It's an awesome library which helps parsing data from a news article.At this moment, it doesn't have Bengali language support. So I tweaked the library to add Bengali language support. I've already created a Pull Request for adding Bengali language support to the library.
You are welcome to contribute in this project. You can:
- create new issues pointing out the bugs.
- add new newspaper sources.
- add new features to extend the project.
Available Sources | Can Crawl |
---|---|
https://www.prothomalo.com/ | ✔ |
https://bangla.bdnews24.com/ | ✔ |
https://www.thedailystar.net/ | ✔ |