Skip to content

Instantly share code, notes, and snippets.

@veltman
Created October 17, 2013 18:35
Show Gist options
  • Save veltman/7029964 to your computer and use it in GitHub Desktop.
Save veltman/7029964 to your computer and use it in GitHub Desktop.
from bs4 import BeautifulSoup
import requests
url = "http://www.google.com/"
text = requests.get(url).text
page = BeautifulSoup(text)
for link in page.find_all("a"):
print link["href"]
#"html.parser",lxml
#import json
#import re
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment