Created
October 17, 2013 18:35
-
-
Save veltman/7029964 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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