Giter Site home page Giter Site logo

newspaper-crawler's Introduction

Newspaper Crawler

Scrapy based crawler which crawls newspaper.

Required Dependencies:

  1. docker
  2. docker-compose

Run the Crawler from source:

  • 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

Configuration

  • 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.

About the Newspaper3k library

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.

Development

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.

Supported sources

Available Sources Can Crawl
https://www.prothomalo.com/
https://bangla.bdnews24.com/
https://www.thedailystar.net/

newspaper-crawler's People

Contributors

rafatbiin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.