Skip to main content

A module that allows you to get and analyze news in detail

Project description

ArchiveNews 0.2 (Beta)

A module that allows you to get and analyze news from Arquivo.pt <https://arquivo.pt/>_

Main Features ^^^^^^^

  • Get Past Covers from Newspapers
  • Get Past News from Newspapers
  • Get Deep Data from the News (Title, Snippet, Link, Author, Date, Locations, Organizations, People and Keywords)
  • Analysis the News

Usage (Python) ^^^^^^^ How to use it on Python

1. Install the Module::

pip install git+https://github.com/diogocorreia01/ArchiveNews.git

2. Get the Covers::

Get_Covers(years=[2013], output_path='Samples\CoverSample.json', newspaper_url='https://www.publico.pt')

3. Get the News::

   Get_News(input_file='Samples\\CoverSample.json', newspaper_url='https://www.publico.pt/', news_htmlTag='article', news_htmlClass='hentry', titles_htmlTag='h2', titles_htmlClass='entry-title', snippets_htmlTag='div',
     snippets_htmlClass='entry-summary', links_htmlTag='a', links_htmlClass='href', authors_htmlTag='span', authors_htmlClass='fn', output_path='Samples\\NewsSample')

4. Get the News Data::

   Get_News_Data(Samples\\NewsSample.json, Samples\\NewsDataSample)

Related projects ^^^^^^^ Arquivo Publico -

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

ArchiveNews-0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file ArchiveNews-0.2.tar.gz.

File metadata

  • Download URL: ArchiveNews-0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for ArchiveNews-0.2.tar.gz
Algorithm Hash digest
SHA256 879447ef05786ac76a032f9259a7ecc3c1e0b858b2b3240b6cf4a0c92f1e4725
MD5 591daf1c88ea7d68ad2fb4e6a48c805c
BLAKE2b-256 4a8dea890b96c1e16cb90b0831f8498663f8c1615b983d8898bac8e1b0ed0479

See more details on using hashes here.

Supported by

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