Giter Site home page Giter Site logo

codevardhan / simple-indic-languages-scraper Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 96 KB

A simple scraper to scrape news archives from https://www.oneindia.com in a few low resource languages for use in NLP research/projects.

License: MIT License

Jupyter Notebook 75.00% Python 25.00%

simple-indic-languages-scraper's Introduction

Indic news data scraper

Status
Issues
made-with-Markdown
MIT license

A simple scraper to scrape news archives from https://www.oneindia.com in a few low resource languages for use in NLP research/projects.

Features

  • Custom date selector
  • Option to get data in a csv file, with category of news, url, news data, and date as row items, or a text file with just data.
  • In case of failure, the dates will be displayed, which can then be used as inputs to a custom command. This will append the remaining data to the data file.

Usage

python3 main.py -l malayalam

This command stores the structured news data in a csv file "malayalam_data.csv" in the current directory. The articles selected from would be from 2000/05/01 to the current date.

python3 main.py -l malayalam -s 2023/02/01 -e 2023/02/20 -f text -sa ./output/

This command stores the raw news data in a file "monolingual.ml" in a directory named "output". The articles selected from would be from 2023/02/01 to 2023/02/20.

How it works

Takes in the language and save directory (defaults to current directory) as arguments. Language arguments are listed below.

  • malayalam
  • telugu
  • kannada
  • tamil
  • odia
  • bengali
  • gujarati
  • hindi

Technology Stack ๐Ÿ’ป

  • Python
  • BeautifulSoup

Future Scope

Open to suggestions ^.^

simple-indic-languages-scraper's People

Contributors

codevardhan avatar

Watchers

James Cloos avatar Kostas Georgiou avatar  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.