Skip to content

Instantly share code, notes, and snippets.

@Nishan8583
Created July 24, 2016 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nishan8583/811cb70621f209431bff0b1292ef5eec to your computer and use it in GitHub Desktop.
Save Nishan8583/811cb70621f209431bff0b1292ef5eec to your computer and use it in GitHub Desktop.
from bs4 import BeautifulSoup
from urllib.request import urlopen
m = urlopen('http://www.nytimes.com')
soup = BeautifulSoup(m,'html.parser')
print(soup.find_all('article'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment