Created
August 9, 2012 18:03
-
-
Save kmcallister/3306591 to your computer and use it in GitHub Desktop.
print all link hrefs
This file contains 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
import sys | |
from BeautifulSoup import BeautifulSoup | |
for a in BeautifulSoup(sys.stdin).findAll('a'): | |
print a['href'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment