Skip to main content

Python scrabing news from any news website

Project description

SimplyNews design to give best article details with Newspaper3k repo

Install

Install into your Python path using pip or easy_install:

$ pip install SimplyNews
$ easy_install SimplyNews

Usage

After installing it, this is how you use it:

Initialize SimplyNews.
>>> url = "https://www.bbc.co.uk/news/uk-scotland-54379026"
>>> from SimplyNews import SimplyNews
>>> simplynews = SimplyNews(url, 'en')

Request processed raw_news
>>> simplynews.raw_news()
text = simplynews.text

Request processed cleaned_news
>>> simplynews.cleaned_news()
text = simplynews.text
# removed all images, links, emails from text
# also replaced all h2, h3, h4 tags with [h2], [h3], [h4]

Request processed prettier_news
>>> simplynews.prettier_news()
text = simplynews.text
# removed all images, links, emails from text
# also aded all h2, h3, h4 tags to text

Accessible parameters

text original_text original_html keywords desc title top_image_url images published_date = None authors

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

SimplyNews-1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SimplyNews-1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file SimplyNews-1.0.tar.gz.

File metadata

  • Download URL: SimplyNews-1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for SimplyNews-1.0.tar.gz
Algorithm Hash digest
SHA256 d20df93058b26bdc2c88eac54f69fb3b43d2e89793451efc59342d3ce36a6294
MD5 0ce82b90c7f4b035583e867d0ed5aec7
BLAKE2b-256 4b30beb977d237a89781a16bd3dc46cce4f09499358735b6a99d87fb49902455

See more details on using hashes here.

File details

Details for the file SimplyNews-1.0-py3-none-any.whl.

File metadata

  • Download URL: SimplyNews-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for SimplyNews-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7e370c7c7669635bcae333c9cdc12a86162e6581c67dd0b49d68683de1c784
MD5 8ec5836d4aa371d8faa554601760acda
BLAKE2b-256 6dacbb3f4bcc9a98ee097dcea31512e8b8637ccf8caff45a7d4897b759077340

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