Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. import urllib.request
  4. from bs4 import BeautifulSoup
  5.  
  6. article = "https://en.wikipedia.org/wiki/Arthur_Good"
  7. parsedData = urllib.request.urlopen(article)
  8. soup = BeautifulSoup(parsedData, "html.parser")
  9. g_data = soup.find_all("div", {"id": "mw-content-text"})
  10. print (g_data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement