Skip to content

Instantly share code, notes, and snippets.

@taisang1996
Last active July 18, 2016 05:39
Show Gist options
  • Save taisang1996/27cff8ce8affe99ab14f3de0811ebdaf to your computer and use it in GitHub Desktop.
Save taisang1996/27cff8ce8affe99ab14f3de0811ebdaf to your computer and use it in GitHub Desktop.
grab content from dazzlepod.com (scan, whois, traceroute....)
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