Coder Social home page Coder Social logo

pncnmnp / text-only-news Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.87 MB

A text-only news website/progressive-web-app for low internet bandwidth

Home Page: https://textnews.pythonanywhere.com/

License: MIT License

Python 54.93% CSS 9.12% HTML 31.63% JavaScript 4.32%
progressive-web-app news-aggregator low-bandwidth

text-only-news's Introduction

Online License flask version

Description

Text-only news is a website/progressive-web-app to provide clutter-free news in various languages. This is a non-commercial attempt to provide news in places with slow-internet connectivity especially in rural areas. With low request sizes and fast loading time, the site is perfect for low bandwidth connections.
Features of this site are:

  • Low request sizes, fast loading time
  • Search articles with relevant keyword
  • Can be used as a Progressive Web App (PWA)
  • News are segregated into various categories
  • Multilingual, currently supporting - English, Hindi
  • Clean UI

The site is currently hosted on PythonAnywhere: Text-Only News

How to run (Locally)

Enter the urls you want to scrape in ./data/urls.json with appropriate language and categories. The format for the same is: { 'language_1': {'category_1': ['link_1', 'link_2', ...], 'category_2': ['link_1', 'link_2', ...]}, 'language_2': {...} }

If you add any categories in ./data/urls.json, make sure to list them in ./data/categories_order.json

To fetch the news and store them locally in ./data/news.sqlite3, run: python get_news.py language where language is a string, whose value should be from language_1, language_2, ... (from ./data/urls.json)

By default, values are appended at the end of the database. To truncate the DB, run rm_old_news.py.

License

This project is under MIT License. The news content is a copyright property of the respective news platform. Currently news is rendered from RSS feeds provided by Reuters, NDTV and Dainik Bhaskar. The site logo is under CC 3.0 BY by Designmodo.

text-only-news's People

Contributors

dependabot[bot] avatar pncnmnp avatar

Stargazers

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