Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urllib.request import urlopen
- html = urlopen('https://twitter.com/Microsoft')
- soup = BeautifulSoup(html.read(),'html.parser');
- print(soup)
- <?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta content="True" name="HandheldFriendly"/> ......................
Add Comment
Please, Sign In to add comment