repl.it
@mat1/

article reader

Python

No description

fork
loading
Files
  • main.py
  • article.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
import requests
import article

url = 'https://www.reuters.com/article/us-tech-antitrust-google/justice-department-meeting-state-ag-offices-tuesday-to-discuss-google-sources-idUSKBN1ZX2LG'

html = requests.get(url).text
article_contents = article.read(html)
print(article_contents)
Fetching token
?