Permalink
Switch branches/tags
Nothing to show
Find file Copy path
bebce76 Aug 13, 2015
1 contributor

Users who have contributed to this file

8 lines (7 sloc) 225 Bytes
# Number of datasets currently listed on data.gov
from lxml import html
import requests
response = requests.get('http://www.data.gov/')
doc = html.fromstring(response.text)
link = doc.cssselect('small a')[0]
print(link.text)