‘Was damage done? I don’t know’: Health experts are slow to criticize Fauci but quick to correct his claim that we are ‘out of the pandemic’
This is my code:
from newspaper import Article
from newspaper import Config
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
config = Config()
config.browser_user_agent = user_agent
config.request_timeout = 30
config.fetch_images = False
def get_article(link):
article = Article(link, config=config)
article.download()
article.parse()
text = article.text
print("-"*50,"\nTEXT FROM URL: \n", text)
return text
I ran a for loop over the list of the articles mentioned above to see the same output.
Also something to note they are all fortune.com articles.
Really confused with this.. Any help would be appreciated. Also this started from 1st May, 2022 if that is of any help.
They all return the same description for me when running on a local environment in Windows as well as ec2 linstance in linux.
For all these articles i get the descripton as:
This is my code:
I ran a for loop over the list of the articles mentioned above to see the same output. Also something to note they are all fortune.com articles. Really confused with this.. Any help would be appreciated. Also this started from 1st May, 2022 if that is of any help.