Skip to content

SamirPS/News-Scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages