Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 877 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 877 Bytes

NNTP News Agent

First, nntp news is base on nntp(Network News Transfer Protocol), the details please see wiki, you can search free nntp source from website free usenet news

Sample

This sample list week's python announce news from aioe

output -> index

BBC News

Currently, bbc nntp server is invaild, using API to show the topest bbc news.

agent = NewsAgent()

bbc_news_url = 'https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey={your-api-key}'
bbc_news = APIJsonSoucre(bbc_news_url)

agent.addSource(bbc_news)
agent.addDestination(HTMLDestination2('news.html'))

agent.distribute()

output -> news