Created
October 18, 2011 18:33
Revisions
-
Gunio revised this gist
Oct 18, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ import requests import lxml from lxml import html r = requests.get('http://gun.io') tree = lxml.html.fromstring(r.content) -
Gunio created this gist
Oct 18, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ import requests import lxml r = requests.get('http://gun.io') tree = lxml.html.fromstring(r.content) elements = tree.get_element_by_id('frontsubtext') for el in elements: print el.text_content()