A simple News Wrapper of https://orf.at/ made by mcbabo
Install package with
pip install orfnews
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)
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)
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)