Last active
July 18, 2016 05:39
-
-
Save taisang1996/27cff8ce8affe99ab14f3de0811ebdaf to your computer and use it in GitHub Desktop.
grab content from dazzlepod.com (scan, whois, traceroute....)
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 requests | |
import re | |
# Grab urls | |
r = requests.get("https://dazzlepod.com/ip/?ip_address=google.com"); | |
urls = re.findall('url:\ ?"(.+)\"', r.content) | |
urls.pop(0) | |
urls.pop(-1) | |
print "Found ", len(urls)," url" | |
# Each content of url | |
for url in urls: | |
url = "https://dazzlepod.com" + url | |
content = requests.get(url).content | |
print "\n\n\n" | |
print " -------------------------------- " | |
print " Grab content from : " + url | |
print " -------------------------------- " | |
print "\n\n\n" | |
print content | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment