Skip to content

Instantly share code, notes, and snippets.

@tejastank
Created July 31, 2012 11:54
Show Gist options
  • Select an option

  • Save tejastank/3216428 to your computer and use it in GitHub Desktop.

Select an option

Save tejastank/3216428 to your computer and use it in GitHub Desktop.
TEJAS-TANK-HACK-DRUPAL-SITE-CONTENT
import requests
import re
for i in range(500,2000):
r = requests.get('http://www.anydrupalsite.com/node/' + str(i))
if r.status_code == 200:
emails = re.search('mailto:.*@[\w.]+"', r.content) # THIS BE THE TRACKING CRITERIA.
if emails:
print emails.group()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment