Skip to content

Instantly share code, notes, and snippets.

@toufik-airane
Created September 29, 2015 13:24
Show Gist options
  • Save toufik-airane/75b543b1e1de59b11962 to your computer and use it in GitHub Desktop.
Save toufik-airane/75b543b1e1de59b11962 to your computer and use it in GitHub Desktop.
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