Skip to content

Instantly share code, notes, and snippets.

@petrjoachim
Last active August 29, 2015 13:56
Show Gist options
  • Save petrjoachim/9341584 to your computer and use it in GitHub Desktop.
Save petrjoachim/9341584 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# pip install BeautifulSoup requests
import requests
from BeautifulSoup import BeautifulSoup
response = requests.get("http://www.itworld.com/news")
html = response.text
soup = BeautifulSoup(html)
print soup.findAll("h3")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment