Skip to main content

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 -

Metadata

Release files for ArchiveNews 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ArchiveNews 0.2
File Size Uploaded Provenance
ArchiveNews-0.2.tar.gz 3.2 kB Without provenance Details

Release files / ArchiveNews-0.2.tar.gz

Download URL ArchiveNews-0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
879447ef05786ac76a032f9259a7ecc3c1e0b858b2b3240b6cf4a0c92f1e4725
BLAKE2b-256 checksum
How to use checksums
4a8dea890b96c1e16cb90b0831f8498663f8c1615b983d8898bac8e1b0ed0479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Security for ArchiveNews 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page