Parse Web Page Using Newspaper3k
# Import newspaper from newspaper import Article # Create an article instance and provide it with desired url. # Let's scrape Wikipedia a little article = Article("https://en.wikipedia.org/wiki/Web_mining") # Necessary step, fetch the article. article.download() # Web page content print("Page Content: ", article.html) # Parse the article article.parse()
Read the related article on factober dev stack.