Created
October 14, 2019 14:50
-
-
Save elibroftw/b8e6e8702268859ecb18fb78ed65c941 to your computer and use it in GitHub Desktop.
A change.org survey bot (up to 10 surveys) - Last tested in April 2017.
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 time, pyautogui as kbm | |
from faker import Factory | |
import webbrowser | |
'''This program will go to a change.org link and fill out as many forms as you want''' | |
print('For more than 10 bots: Some sort of ipchanger is needed in the background, one that is undetectable') | |
__author__ = 'Elijah Lopez' | |
__version__ = '1.0' | |
__Date__ = 'April 26, 2017' | |
times = int(input('Enter how many bots: ')) | |
browser = 'chrome' | |
fake = Factory.create('en_CA') | |
first_names, last_names, emails, address, cities, postal_codes = [], [], [], [], [], [] | |
website, city = 'http://bit.ly/2oFPkYz', 'Burlington' | |
# website =input('Enter website for petition: ') | |
for i in range(times): | |
first_names.append(fake.first_name()) | |
last_names.append(fake.last_name()) | |
emails.append(fake.email()) | |
address.append(fake.street_address()) | |
postal_codes.append(fake.postalcode()) | |
# cities.append(fake.city()) If petition is super popular in the Nation | |
time.sleep(0.1) | |
kbm.press('win') | |
time.sleep(0.1) | |
kbm.typewrite(browser) | |
kbm.press('enter') | |
time.sleep(2) | |
kbm.hotkey('ctrl', 'shift', 'n') | |
for i in range(times): | |
time.sleep(0.1) | |
kbm.typewrite(website) | |
time.sleep(0.07) | |
kbm.press('enter') | |
time.sleep(5) | |
kbm.typewrite(first_names[i]) | |
time.sleep(0.07) | |
kbm.press('tab') | |
kbm.typewrite(last_names[i]) | |
time.sleep(0.07) | |
kbm.press('tab') | |
kbm.typewrite(emails[i]) | |
time.sleep(0.07) | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.typewrite(address[i]) | |
time.sleep(0.07) | |
kbm.press('tab') | |
kbm.typewrite(postal_codes[i]) | |
time.sleep(0.07) | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.press('enter') | |
time.sleep(1.5) | |
kbm.typewrite(city) | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.press('tab') | |
kbm.press('enter') | |
time.sleep(14) | |
kbm.hotkey('ctrl', 'w') | |
kbm.hotkey('ctrl', 'shift', 'n') | |
# print('DONE\n Press Enter to give feedback') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment