SamirPS / News-Scrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News-Scrapper

PyPI

Web Scrapper for gettings the headlines of some news websites: https://pypi.org/project/newsscrapper-SamirPS/

To import the function :

FR:

from newsscrapper import fr
  • LeMonde : fr.MondeSC()
  • MediaPart: fr.MediaPartSC()
  • BFMTV : fr.BmftvSC()
  • LibĂ©ration : fr.LibeSC()

EN:

from newsscrapper import en
  • CNN : en.CNNSC()
  • FoxNews: en.FoxNewsSC()
  • AbcNews: en.ABCNewsSC()
  • TheGuardian : en.TheGuardianSC()
  • TheNewYorkTimes : en.TheNewYorkTimesSC()

ES:

from newsscrapper import es
  • ELPAIS: es.ELPAISSC()

The function return a dict like {"1":{"link":A,"images":{key_image:B,...},"title":C,"description":D,"summary":E,"keyword":F}}

The ... is for multiple images; key_image can be the "heightxweight" of the picture or a string representing an integer if we don't have the height or weight.

About


Languages

Language:Python 100.0%