Created
January 11, 2014 13:02
-
-
Save rebornix/8370715 to your computer and use it in GitHub Desktop.
Crawler4PathAPI
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 urllib2 | |
url = 'https://path.com/developers/docs' | |
data = urllib2.urlopen(url).read() | |
soup = BeautifulSoup(data) | |
for node in soup.findAll(attrs={'class': 'curl'}): | |
print node.contents[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment