Skip to main content

Simple orf news scraper

Project description

ORF News Wrapper

A simple News Wrapper of https://orf.at/ made by mcbabo

How to use

Install package with

pip install orfnews

Get top news

Create your main.py file

import orf_news
import asyncio

# Create orf class
orf = orf_news.ORF_News()

# Call getTopicNews
newest_post = asyncio.run(orf.getTopPost("inland"))

# Print out dictionary
print(newest_post)

Get top news

Create your main.py file

import orf_news
import asyncio

# Create orf class
orf = orf_news.ORF_News()

# Call getTopicNews
newest_post = asyncio.run(orf.getTopPosts("inland", amount : int))

# Print out list with dictionaries
print(newest_post)

Get all available topics

import orf_news
import asyncio

# Create orf class
orf = orf_news.ORF_News()

# Call getTopics
topics = asyncio.run(orf.getTopics())

# Print out dictionary
print(topics)

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

ORF_News-2.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ORF_News-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ORF_News-2.0.0.tar.gz.

File metadata

  • Download URL: ORF_News-2.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ORF_News-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a1f46e76c6ef6173edf9268d446c56715560e278d2d3ebdd323b660d5717ef64
MD5 7f91c56d200d087ea4ebf2f0d196b598
BLAKE2b-256 3915258d4caaaad4207970902ad55fe6ed658586c219fe703989a0d7f26a9743

See more details on using hashes here.

File details

Details for the file ORF_News-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ORF_News-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ORF_News-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31771971fc2deab834d1a89d812cccbb61df6fffcc8b936c9b1a750fb8ba3752
MD5 3ef397facc32bd02fbe0b2b975f86284
BLAKE2b-256 4252d8cd41b861beac85008794ce9ab317bfa217b5d0012bbd3505f862496bad

See more details on using hashes here.

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