Closed SohailSayed closed 1 year ago
For example, I'm following this tutorial (https://www.geeksforgeeks.org/scraping-websites-with-newspaper3k-in-python/)
This prints blank
import newspaper url = 'https://www.geeksforgeeks.org/top-5-open-source-online-machine-learning-environments/' url_i = newspaper.Article(url="%s" % (url), language='en') url_i.download() url_i.parse() print(url_i.text)
Tried Article() on a CBC and CNN article too, and both were completely blank (all attributes)
Apologies, there was an error with my local environment, everything seems to be running fine
For example, I'm following this tutorial (https://www.geeksforgeeks.org/scraping-websites-with-newspaper3k-in-python/)
This prints blank
Tried Article() on a CBC and CNN article too, and both were completely blank (all attributes)