Created
September 29, 2015 13:24
-
-
Save toufik-airane/75b543b1e1de59b11962 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
import re | |
soup = BeautifulSoup(urllib2.urlopen("http://redis.io/commands"), 'html.parser') | |
for b in soup.find_all('span', class_='command'): | |
print b.contents[0].strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment