Last active
February 11, 2016 07:25
-
-
Save adamburvill/f3a36d2a7cf1f461c434 to your computer and use it in GitHub Desktop.
Ted Cruz
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 | |
import requests | |
import time | |
import requests.packages.urllib3 | |
requests.packages.urllib3.disable_warnings() | |
email = sys.argv[1] | |
amount = sys.argv[2] | |
url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8' | |
for x in range(1, int(amount)): | |
numberedEmail = email + '+' + str(x) + '@gmail.com' | |
payload = {'oid': '00Di0000000cUyF', | |
'retURL': 'https://contribute.tedcruz.org/powering-to-the-nomination/?recurring=true&source=MainForm', | |
'Campaign_ID': '7013100000107m3', | |
'email': numberedEmail, | |
'zip': '12345' | |
} | |
time.sleep(0.1) | |
print "Signing up " + numberedEmail + " for TEDDDD CRUZZZZZZ MAILING LIST" | |
r = requests.post(url, data=payload) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment