Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newsscrapper-SamirPS-1.0.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

newsscrapper_SamirPS-1.0.5-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page