Created
December 6, 2013 06:13
-
-
Save kkc/7819336 to your computer and use it in GitHub Desktop.
SgmlLinkExtractor
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
| In [10]: fetch('http://www.last.fm/music/AC%252FDC/+images') | |
| In [11]: lx = SgmlLinkExtractor(restrict_xpaths=('//a[@class="nextlink"]')) | |
| In [12]: lx.extract_links(response) | |
| Out[12]: [<Link url='http://www.last.fm/music/AC%2FDC/+images?page=2' text=u'Next' >] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment