Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import urllib.request
- from bs4 import BeautifulSoup
- article = "https://en.wikipedia.org/wiki/Arthur_Good"
- parsedData = urllib.request.urlopen(article)
- soup = BeautifulSoup(parsedData, "html.parser")
- g_data = soup.find_all("div", {"id": "mw-content-text"})
- print (g_data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement