dragona / News-At-Command-Line

:newspaper: News at the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading news dragona

News at the Command line

Using a browser is good but not always. There are times when you want to read some news online; then you open a browser and type in the web address of your favorite news website. Very often, aside with each article, you are served with un-related photos, ads, popup, and other things that are poping up; sometimes even attracting your neighbor's attention. Bootstrapping what Ankit Singh made in 2017, here is an updated version of the "News at the Command line" for those interested in reading news discreetly from:

Prerequisites

This current version is in Python 2.7. The package requirement list is in the file requirement_contact.txt and/or requirements.txt

How to use this

My way : Download the package and go to the News folder.

    python main.py

You should get something similar to this, where the news titles from the different news sources are all listed. At the bottom of the list, you can type in the news identification number (the number before the title) if you want to read the full content. The script should start reading the content at the same time as well.

    0 - Film : «Mahazo tsirony» : à dévorer des yeux ! (Midi-Madagascar)
    1 - Coopération MENETP-Orange Madagascar : 15 nouvelles « écoles numériques » pour 2019-2020 (Midi-Madagascar)
    2 - Fédération Malgache de Football : Les commissions sont déjà en place ! (Midi-Madagascar)
    3 - Réunion des centres qui s’occupent des personnes ayant un handicap mental : Vers la mise en place d’un vaste réseau dans le pays (Midi-Madagascar)
    4 - Manomboka ny fitsarana miaramila eto Toamasina : Hosaziana araka ny làlana izay tsy manao izany (Midi-Madagascar)
    5 - Andapa : Rangahy 60 taona mpanamboatra basy, voasambotra (Midi-Madagascar)
    6 - Exécution sommaire à Ampefiloha : La CNIDH exige une accélération du procès (Midi-Madagascar)
    7 - Beach soccer- Open national : Rendons à l’ACVB… (Midi-Madagascar)
    8 - Base Toliara : 25 futurs techniciens formés en langue anglaise (Midi-Madagascar)
    9 - Pont de Mangoro : Le projet de réhabilitation signé, hier (Midi-Madagascar)

Type the number corresponding to the news you wish to read. >>

TODOs

  • Minimize server overload
    • Write the already read news in a file
    • Each file will is to name after the md5 value of the news title)
    • Load news article from file if available
    • Implement title cashing
  • moving everything into py3
  • adding more news channel
  • loading more news articles (see)
  • adding tts

Acknowledgments

  • to Ankit, and see his license here
  • Hat tip to the news providers

About

:newspaper: News at the command line

License:MIT License


Languages

Language:Python 100.0%