Created
June 2, 2017 05:00
-
-
Save 0xTenable/5906d3bcf42a0d9fbfb56acd08dfabad to your computer and use it in GitHub Desktop.
Gets links
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
import urllib2 | |
import re | |
url="http://www.hearthpwn.com/deckbuilder/warrior#1:2;69:2;103:2;130:2;182:2;261:2;324:2;345:1;632:2;637:2;638:2;674:1;27215:1;33132:2;35204:2;49624:1;49759:2" | |
site = urllib2.urlopen(url) | |
html = site.read() | |
links = re.findall('"((http|ftp)s?://.*?)"', html) | |
for link in links: | |
print "Link is: ", link[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment