· 5 years ago · May 11, 2020, 11:44 AM
1# ohio.py
2from selenium import webdriver
3from selenium.webdriver.common.by import By
4from selenium.webdriver.support import expected_conditions as EC
5from selenium.webdriver.support.ui import WebDriverWait
6from selenium.webdriver.common.keys import Keys
7import random
8import re
9import requests
10import json
11import time
12
13counties = [ "Adams", "Allen", "Ashland", "Ashtabula", "Athens", "Auglaize", "Belmont", "Brown", "Butler", "Carroll", "Champaign", "Clark", "Clermont", "Clinton", "Columbiana", "Coshocton", "Crawford", "Cuyahoga", "Darke", "Defiance", "Delaware", "Erie", "Fairfield", "Fayette", "Franklin", "Fulton", "Gallia", "Geauga", "Greene", "Guernsey", "Hamilton", "Hancock", "Hardin", "Harrison", "Henry", "Highland", "Hocking", "Holmes", "Huron", "Jackson", "Jefferson", "Knox", "Lake", "Lawrence", "Licking", "Logan", "Lorain", "Lucas", "Madison", "Mahoning", "Marion", "Medina", "Meigs", "Mercer", "Miami", "Monroe", "Montgomery", "Morgan", "Morrow", "Muskingum", "Noble", "Ottawa", "Paulding", "Perry", "Pickaway", "Pike", "Portage", "Preble", "Putnam", "Richland", "Ross", "Sandusky", "Scioto", "Seneca", "Shelby", "Stark", "Summit", "Trumbull", "Tuscarawas", "Union", "Van Wert", "Vinton", "Warren", "Washington", "Wayne", "Williams", "Wood", "Wyandot" ]
14
15large_companies = [ "Kroger", "Macy’s", "Watson’s", "P&G", "National Machinery", "Goodyear Tire and Rubber Company", "L Brands", "First Student", "Parker Hannifin", "Cardinal Health", "Marathon Petroleum", "Sherwin-Williams", "Cintas", "Mason", "Speedway", "Flynn Restaurant Group LP", "Progressive", "The Midland Company", "Nationwide Mutual Insurance", "Dana", "Schottenstein Stores", "Gillette", "American Greetings", "Owens-Illinois", "KRLP", "The Ohio State University", "University Hospitals", "Jo-Ann Stores", "Diebold Nixdorf", "Big Lots", "Abercrombie & Fitch", "TravelCenters of America", "Bath & Body Works", "Vertiv", "KeyBank", "Fifth Third Bank", "American Electric Power", "Owens Corning", "Greif", "Ohio", "Huntington Bancshares", "FirstEnergy", "ProMedica", "First Transit", "Ohio Arts Council", "Timken Company", "Safelite AutoGlass", "Chemed", "RPM International", "Mettler-Toledo International", "DSW", "Wendy’s", "Worthington Industries", "Givaudan", "Cincinnati Children’s Hospital Medical Center", "Crown Equipment", "TriHealth", "HCR ManorCare", "Cooper Tire & Rubber Company", "Belcan", "Teradata", "Bravo Brio Restaurant Group", "R+L Carriers", "Lincoln Electric", "White Castle Management Co.", "University of Cincinnati", "Davey Tree Expert Company", "NACCO Industries", "AK Steel Holding", "Sunglass Hut", "Ohio University", "Faurecia Exhaust Systems", "Kent State University", "Covelli Enterprises", "Transportation Unlimited", "Tween Brands", "The MetroHealth System", "Case Western Reserve University", "STERIS", "Mentor", "American Financial Group", "Summa Health", "The J.M. Smucker Company", "Columbus Fire-Executive Ofcr", "Marc’s", "Commercial Vehicle Group", "Area Temps", "Frisch’s Big Boy", "Comfort Keepers", "OM Group", "Applied Industrial Technologies", "Battelle", "Hyster-Yale Materials Handling", "PolyOne", "Ohio.gov", "Libbey", "Pepperl+Fuchs", "Miami Valley Hospital", "Reynolds and Reynolds", "Nordson", "Park-Ohio Holdings"]
16
17email_prefixes = [ "jobs", "work", "info", "careers", "management", "hr" ]
18
19addresses = [["90 Blackburn Road","Jefferson","44047"],["7682 Lilypad Rd.","Cincinnati","45238"],["64 E. Marshall Drive","Dayton","45400"],["554 Fortune Drive Blue","Creek","45616"],["91 Petal St.","Gallipolis","45631"],["54 Foxrun Lane","Luckey","43443"],["39 North Azure Rd. West","Manchester","45382"],["44 SE. Pinnacle St.","Creston","44217"],["9377 SE. Creekside Drive","Groveport","43125"],["7798 Cemetery St.","Okolona","43550"],["7329 Church St.","Middlefield","44062"],["731 Grotto Road Green","Springs","44836"],["493 Griffin St.","Euclid","44132"],["184 Randall Mill Court","Shreve","44676"],["732 Gartner Rd.","Lockbourne","43137"],["7270 Riverview Ave.","Lima","45804"],["75 Shirley Ave.","Shade","45776"],["75 Cherry Hill Drive","Pedro","45659"],["821 South Goldfield Drive","Mantua","44255"],["2 E. Elizabeth Drive Port","Jefferson","45360"],["319 Church Rd.","Winona","44493"],["7839 North Palm Rd.","Waynesfield","45896"],["316 Brewer Ave.","Centerburg","43011"],["8960 Sugar Street","Dayton","45463"],["169 Edgemont Street Canal","Winchester","43110"],["576 Manor St.","Canton","44711"],["896 Cliff Court East","Liverpool","43920"],["7015 Lilypad St.","Lowell","45744"],["8439 Iroquois Circle","Stoutsville","43154"],["823 Polygon Street","Millersburg","44654"],["8102 S. Globe St.","Eastlake","44095"],["8486 John Ave.","Garrettsville","44231"],["9634 S. Wharf St.","Peninsula","44264"],["65 Broad Street","Wilberforce","45384"],["896 S. Old York Avenue","Toledo","43611"],["9661 High Ridge Street","Ottoville","45876"],["718 Schoolhouse St.","Utica","43080"],["13 El Dorado Avenue","Mantua","44255"],["54 Fair Ave.","Barnesville","43713"],["39 Prince Court","Lynchburg","45142"],["300 Gold St.","Toledo","43652"],["8 Duchess Ave.","Cleveland","44127"],["8994 Nicolls Court Newton","Falls","44444"],["352 Terrace Lane","Newport","45768"],["947 Winchester St.","Cleveland","44192"],["8076 Polygon Rd.","Cincinnati","45211"],["948 Silver Ave. New","Bavaria","43548"],["9932 Bloomfield St.","Sandusky","44870"],["615 Front St.","Cincinnati","45224"],["369 York St.","Rosewood","43070"],["141 Green Road","Tippecanoe","44699"],["33 Stone Lane","Elkton","44415"],["28 Beechwood St.","Cincinnati","45280"],["7291 Hilldale St.","Massillon","44648"],["895 Parker Rd. Mount","Cory","45868"],["9 Bay Road New","London","44851"],["291 Snake Hill Street","Lakeview","43331"],["28 Middle Ave.","Glencoe","43928"],["75 Atlantic Lane","Ontario","44862"],["8250 Linden Street","Cleveland","44111"],["398 Vernon St. West","Union","45693"],["8012 Mayfair Ave.","Sarahsville","43779"],["9763 N. William Lane","Columbus","43220"]]
20
21cities = [
22
23fakeNames = [["Patty","Murillo"],["Fermin","Zuniga"],["Valeria","Hendrix"],["Simone","Browning"],["Aisha","Haynes"],["Norman","Campbell"],["Franklyn","Massey"],["Melba","Calhoun"],["Chung","Richmond"],["Sherri","Bender"],["Harley","Mcbride"],["Alyson","Peterson"],["Willard","Jarvis"],["Anton","Bentley"],["Ursula","Rollins"],["Colette","Graham"],["Heath","Gilbert"],["Dorothea","Hoffman"],["Woodrow","Carrillo"],["Raymundo","Wallace"],["Janine","Herring"],["Maria","Krueger"],["Christie","Atkins"],["Terrance","Simpson"],["Elmer","Savage"],["Berta","Howell"],["Geraldo","Parrish"],["Mitch","Stokes"],["Millie","Clarke"],["Elvia","Duncan"],["Cyrus","Burgess"],["Maricela","Morris"],["Gustavo","Mendoza"],["Leigh","Sanford"],["Broderick","Cannon"],["Carmela","Santos"],["Maritza","Morrison"],["Laverne","Faulkner"],["Sharon","Delacruz"],["Meghan","Hopkins"],["Hester","Strickland"],["Angelique","Richardson"],["Robyn","Gibson"],["Royal","Flores"],["Misty","Flowers"],["Elvira","Mckinney"],["Lindsay","Dillon"],["Rachelle","Mcintyre"],["Renaldo","Hanson"],["Philip","Travis"],["Aurelio","Caldwell"],["Millie","Charles"],["Stewart","Huerta"],["Shelton","Willis"],["Janis","Alvarado"],["Estela","Madden"],["Helen","Gordon"],["Arlen","Manning"],["Abraham","Bradshaw"],["Marjorie","Dillon"],["Galen","Stephens"],["Johanna","Sexton"],["Noble","Oneill"],["Gabriel","Donovan"],["Rosario","Montoya"],["Diego","Barrera"],["Ginger","Keller"],["Aubrey","Wilson"],["Miquel","Mullins"],["Vicky","Richards"],["Clifton","Ramirez"],["Keenan","Mcguire"],["Harriett","Kelley"],["Darell","Jacobson"],["Marquis","Jensen"],["Alphonso","Barnes"],["Amber","Brandt"],["Spencer","Crawford"],["Junior","Hughes"],["Refugio","Stafford"],["Virgil","Shelton"],["Jamie","Guzman"],["Lucio","Rosales"],["Luther","Riddle"],["Waldo","Santiago"],["Muriel","Andersen"],["Garrett","Oconnell"],["Amado","Villanueva"],["Hunter","Huffman"],["Ralph","Potter"],["Norman","Callahan"],["Armand","Chaney"],["Flora","Orozco"],["Arnulfo","Fisher"],["Anita","Maddox"],["Roberta","Carpenter"],["Lenora","Wright"],["Humberto","Jenkins"],["Elisa","Branch"],["Leopoldo","Weaver"],["Sherwood","Torres"],["Winston","Anderson"],["Christopher","Dickerson"],["Alfred","Mcclure"],["Casey","Rollins"],["Harlan","Wheeler"],["Manual","Waters"],["Miranda","Gillespie"],["Alfreda","Coleman"],["Laura","Franklin"],["James","Pittman"],["Courtney","Wilkinson"],["Lillie","Larson"],["Delmar","Pacheco"],["Larry","Brennan"],["Nelson","Palmer"],["Sherry","Mcclain"],["Helena","Molina"],["Janelle","Fitzgerald"],["Rosalind","Guzman"],["Jasper","Burton"],["Lavern","Beasley"],["Adolph","Gilbert"],["Bonnie","Bishop"],["Merle","Stuart"],["Mollie","Pollard"],["Roland","Sparks"],["Terry","Benjamin"],["Bridgett","Robinson"],["Maxwell","Cooley"],["Gregory","Flores"],["Diana","Hensley"],["Joanna","Powers"],["Daisy","Jacobson"],["Isaac","Rowland"],["Leanna","Mendoza"],["Willie","Norman"],["Ramiro","Mcintosh"],["Elijah","Wilson"],["Cedric","Livingston"],["Jolene","Coffey"],["Deloris","Joseph"],["Jarred","Rasmussen"],["Archie","Rogers"],["Marquis","Barnett"],["Rochelle","Fisher"],["Nathaniel","Alvarado"],["Johanna","Turner"],["Concepcion","Mccullough"],["Gerard","Barnes"],["Coleman","Graves"],["Lucio","Rowland"],["Donna","Patrick"],["Taylor","Thomas"],["Selma","Santana"],["Graig","Velasquez"],["Wilford","Randall"],["Julianne","Kaiser"],["Kendra","Salazar"],["Ashley","Brewer"],["Marianne","Mclaughlin"],["Debra","Dillon"],["Autumn","Armstrong"],["Foster","Cabrera"],["Burton","Golden"],["Davis","Petersen"],["Lilly","Hudson"],["Bernadine","Gillespie"],["Ursula","Shepard"],["Glenda","Morgan"],["Melvin","Haynes"],["Tessa","Moreno"],["Bernadette","Duarte"],["Kieth","Everett"],["Mohamed","Meyers"],["Alphonso","Campbell"],["Norman","Fischer"],["Leigh","Richard"],["Dianne","Guerra"],["Mauricio","Stephens"],["Christa","Farmer"],["Fernando","Donaldson"],["Keenan","Davidson"],["Francesca","Reilly"],["Latisha","Morales"],["Sophia","Hughes"],["Ezekiel","Gregory"],["Anastasia","Harding"],["Isaias","Larson"],["Blanche","Villanueva"],["James","Alvarado"],["Andreas","Schroeder"],["Freida","Dickerson"],["Aline","Ingram"],["Roger","Sherman"],["Rogelio","Schaefer"],["Kermit","Jacobson"],["Hassan","Goodman"],["Robin","Mcintyre"],["Tabatha","Alexander"],["Stefanie","Friedman"],["Patricia","Ballard"],["Maximo","Petersen"],["Lidia","Figueroa"],["Jewel","Dorsey"],["Esmeralda","Lawrence"],["Josefina","Romero"],["Darwin","Hammond"],["Matthew","Valdez"],["Freeman","Harris"],["Deann","Oneill"],["Jarrett","Carter"],["Winnie","Moreno"],["Jeannie","Branch"],["Coleman","Atkins"],["Esteban","Barton"],["Sybil","Randall"],["Cecilia","Whitney"],["Kellie","Atkinson"],["Barrett","Mahoney"],["Kirby","Montgomery"],["Frankie","Camacho"],["Elisha","Buchanan"],["Clifton","Fletcher"],["Fernando","Lowery"],["Caroline","Conley"],["Jocelyn","Butler"],["Deirdre","Higgins"],["Ester","Hinton"],["Sydney","Nelson"],["Micheal","Barrett"],["Grant","Durham"],["Harvey","Willis"],["Shannon","Patrick"],["Eddie","Chambers"],["Jordan","Padilla"],["Rudolf","Blevins"],["Kelsey","Odonnell"],["Morton","Fitzpatrick"],["Nadine","Gallegos"],["Gertrude","Cochran"],["Jeremy","Murphy"],["Loren","Burgess"],["Pamela","Vargas"],["Weston","Compton"],["Pierre","Proctor"],["Stanford","Greene"],["Herminia","Burnett"],["Randolph","Marquez"],["Jefferey","Harrington"],["Arlene","Simpson"],["Carlo","Schneider"],["Brock","Dawson"],["Richie","Foster"],["Wendell","Sherman"],["Alfonzo","Hutchinson"],["Ashley","Shields"],["Joyce","Molina"],["Clifford","Stuart"],["Gayle","Obrien"],["Derek","Villarreal"],["Andre","Cooley"],["Lourdes","Becker"],["Lenore","Wilcox"],["Garry","Townsend"],["Kendra","Houston"],["Columbus","Elliott"],["Maggie","Alexander"],["Sherri","Saunders"],["Frederick","Whitney"],["Carson","Thompson"],["Milan","Spears"],["Cynthia","Austin"],["Preston","Alvarez"],["Raquel","Larsen"],["Hollis","Ferguson"],["Ilene","Guerrero"],["Antonio","Herring"],["Patti","Sparks"],["Rosalinda","Duarte"],["Maricela","Curtis"],["Edgar","Sanford"],["Janine","Wilkerson"],["Renato","Ingram"],["Gerard","Andersen"],["Colby","Mathews"],["Terra","Ferrell"],["Johnson","Frederick"],["Emory","Allison"],["Kenton","Reilly"],["Quinn","Pollard"],["Kristi","Adkins"],["Ellis","Bowers"],["Katelyn","Macias"],["Lowell","Barrett"],["Marcus","Blanchard"],["Jamey","Randall"],["Raymond","Briggs"],["Edmond","Schwartz"],["Warner","Madden"],["Norris","Sutton"],["Carroll","Daugherty"],["Sherry","Carroll"],["Maxwell","Campbell"],["Morton","Skinner"],["Basil","Mcguire"],["Olive","Patton"],["Cecilia","Jennings"],["Nelson","Harrison"],["Avery","Goodwin"],["Callie","Acevedo"],["Aubrey","Lawson"],["Ellsworth","Alvarado"],["Donald","Barrera"],["Gilbert","Huffman"],["Conrad","Oconnor"],["Roberta","Barber"],["Alyssa","Compton"],["Abram","Garcia"],["Jamison","Mccarthy"],["Tammi","Cervantes"],["Ernestine","Simpson"],["Lawanda","Humphrey"],["Alejandra","Griffith"],["Colette","Livingston"],["Jarrod","Norton"],["Barney","Spence"],["Marcella","Mccarty"],["Petra","Anderson"],["Warner","Stuart"],["Ellis","Calhoun"],["Marcie","Benton"],["Gerry","Stanton"],["Marilyn","Dorsey"],["Russell","Christian"],["Sammie","Mcintyre"],["Mckinley","Vargas"],["Ambrose","Armstrong"],["Lorena","Jimenez"],["Antione","Steele"],["Eldridge","Bailey"],["Brianna","Wilcox"],["Marcel","Bradley"],["Clarence","Nielsen"],["Maureen","Santana"],["Teodoro","Ferguson"],["Erick","Burton"],["Jaime","Bullock"],["Rhonda","Arroyo"],["Arnulfo","Powers"],["Lucille","Hayden"],["Michael","Cannon"],["Bernard","Cortez"],["Rosemary","Terrell"],["Rafael","Swanson"],["Quinn","Hensley"],["Christa","Gaines"],["Aurelio","Hanson"],["Lawerence","Vazquez"],["Alissa","Snyder"],["Janis","Mcdaniel"],["Rolando","Mcgrath"],["Mabel","Mcdonald"],["Alfonso","Wheeler"],["Adalberto","Morrow"],["Jimmy","Werner"],["Francesca","Acosta"],["Anthony","Rodriguez"],["Theodore","Carrillo"],["Kellie","Harris"],["Keenan","Padilla"],["Rosalind","Schultz"],["Earline","Bryant"],["Paulette","Weaver"],["Amparo","Caldwell"],["Milford","Houston"],["Wayne","Simpson"],["Alfreda","Camacho"],["Chance","Farley"],["Casey","Hammond"],["Courtney","Mcknight"],["Jaime","Saunders"],["Kimberley","Cummings"],["Johnson","Mcclure"],["Lindsay","Phelps"],["Shawn","Hickman"],["Kurtis","Burgess"],["Dewitt","Travis"],["Willian","Christensen"],["Thurman","Salinas"],["Mavis","Andersen"],["Marlon","Jefferson"],["Alphonso","Meadows"],["Sallie","George"],["Waldo","Arellano"],["Derrick","Osborne"],["Winifred","Duarte"],["Tonia","Brennan"],["Stephanie","Singleton"],["Norbert","Clayton"],["Jasmine","Blanchard"],["Ronny","Brandt"],["Alana","Wagner"],["Irvin","Hampton"],["Earlene","Barrett"],["Jeffry","Whitehead"],["Dillon","Middleton"],["Maurice","Stevenson"],["Milton","Bailey"],["Fredrick","Davenport"],["Bridgette","Anthony"],["Brittney","Baxter"],["Lamar","Holder"],["Heath","Leblanc"],["Jeanette","Escobar"],["Rodrigo","Mullins"],["Luisa","Houston"],["Melvin","Manning"],["Francine","Castro"],["Harlan","Chambers"],["Doreen","Church"],["Ashlee","Pennington"],["Elsie","Harper"],["Ivory","Galvan"],["Tracey","Baldwin"],["Eusebio","Howard"],["Patricia","Huerta"],["Coleman","Sandoval"],["Milford","French"],["Maureen","Cabrera"],["Theodore","Meadows"],["Brianna","Pineda"],["Lazaro","Reeves"],["Esther","Dougherty"],["Florence","Bryant"],["Zackary","Galloway"],["Georgia","Cortez"],["Jacklyn","Espinoza"],["Estella","Terrell"],["James","Mullen"],["Donny","Santiago"],["Alicia","Delacruz"],["Beulah","Nelson"],["Jacinto","Lucero"],["Beverley","Holden"],["Hilton","Vargas"],["Jonas","Ritter"],["Lonny","Gilbert"],["Grant","Sanford"],["Jerrold","Lawrence"],["Violet","Orozco"],["Justine","Ortega"],["Mercedes","Fitzgerald"],["Corrine","Archer"],["Linwood","Carroll"],["Adrian","Gardner"],["Patrice","Chandler"],["Lucas","Hubbard"],["Weston","Rivera"],["Dwain","Hopkins"],["Leslie","Campos"],["Kristine","Daniels"],["Pedro","Fitzpatrick"],["Lizzie","Ellison"],["Johanna","Bridges"],["Jessie","Wilkinson"],["Melanie","Clarke"],["Lyndon","Ferguson"],["Davis","Deleon"],["Lorraine","Berger"],["Sadie","Haynes"],["Duane","Kramer"],["Valeria","Andrews"],["Melva","Travis"],["Maurice","Mcconnell"],["Kraig","Mclean"],["Mallory","Duarte"],["Elton","Spears"],["Loraine","Waters"],["Rebecca","Roberson"],["Dominique","Fletcher"],["Jefferson","Oneill"],["Miguel","Lowery"],["Hilton","Farrell"],["Saundra","Dorsey"],["Jeannine","Conway"],["Lindsay","Aguirre"],["Jeannie","Santana"],["Edith","Pearson"],["Colette","Church"],["Reinaldo","Mclaughlin"],["Cesar","Hartman"],["Susanna","Atkins"],["Olive","Valentine"],["Jerrell","Espinoza"],["Lewis","Christensen"],["Trevor","Ibarra"],["Addie","Harrison"],["Jamel","Huerta"],["Jeffery","Curtis"],["Myrna","Hirthe"],["Ruby","Johnston"],["Retha","Crona"],["Stefan","Torp"],["Zetta","DuBuque"],["Louisa","Schmidt"],["Wade","Brown"],["Tyrel","Hudson"],["Isabel","McCullough"],["Rey","Zemlak"],["Erica","Jenkins","V"],["Litzy","McCullough"],["Dedrick","Stamm"],["Kendra","Cartwright"],["Robbie","Fay"],["Micah","Dooley"],["Armand","Schiller"],["Presley","Torphy"],["Jordyn","Hermiston"],["Bianka","Lakin"],["Laurie","Pfeffer"],["Mattie","Goyette"],["Rylee","Stanton"],["Mrs.","Rhianna","Welch"],["Charlene","Beahan"],["Idell","Macejkovic","I"],["Ross","Guªann"],["Emmitt","Denesik"],["Bernadine","Wiegand"],["Mr.","Aryanna","Towne"],["Albin","Weber"],["Jaylen","Grimes"],["Hilda","Wolff"],["Angelina","White"],["Mrs.","Lew","Bradtke"],["Lorena","Batz"],["Pat","Lueilwitz"],["Minerva","Rippin"],["Amalia","Beatty"],["Reed","Ebert","V"],["Ramiro","Kreiger"],["Hertha","Fadel"],["Nona","Spinka"],["Charley","Pollich"],["Tracey","Pagac"],["Lazaro","Mraz"],["Mrs.","Jeanie","Willms"],["Cecilia","Harann","PhD"],["Davin","Batz"],["Geo","Christiansen"],["Rupert","Predovic"],["Quincy","Franecki"],["Alexys","Morar"],["Thad","Hahn"],["Bobby","Rath"],["Kaley","Cassin"],["Marcel","Greenfelder"],["Dustin","Lang"],["Willa","Zemlak"],["Shirley","Lowe"],["Zackary","Mosciski"],["Elisha","Stanton"],["Miss","Dawn","Flatley"],["Nia","Wolf"],["Nicholaus","Funk"],["Francesca","Murray"],["Luna","Auer"],["Dudley","Parker"],["Katharina","Spencer"],["Leonora","Roberts"],["Eldora","Metz"],["Sofia","Roob"],["Damian","Lakin"],["Mrs.","Trinity","Rath"],["Dameon","Kirlin"],["Alessandra","Ortiz"],["Mitchell","Bernhard"],["Montana","Auer"],["Ryan","Cormier"],["Viviane","Predovic"],["Dr.","Hayden","Kuvalis"],["Mabelle","Torp"],["Arlene","Gutkowski"],["Tess","Cummerata"],["Ellis","Gleichner"],["Noel","Larkin"],["Felipe","Okuneva"],["Leora","Fisher"],["Bernardo","Lowe"],["Maryjane","Windler"],["Keeley","Stark"],["Moises","Stokes"],["Layne","Harªann"],["Cleveland","Kris"],["Carlotta","Homenick"],["Nella","Klein"],["Columbus","Muller"],["Delbert","Yost"],["Evert","Guann"],["Ashleigh","Gulgowski"],["Sleve","McDichael"]]
24
25print("Hi! This thing fills out that shitty Ohio Covid 19 Employee Narc Form with garbage.\nFor it to work properly you\'re going to need to have Firefox installed.\n\nYou\'ll also need geckodriver. You can get that here:\n\nhttps://github.com/mozilla/geckodriver/releases\n\nOnce installed, point the script to (absolute path): geckodriver, your Firefox bin (or *a* Firefox bin), and a 2captcha API key from:\n\nhttps://2captcha.com/\n\n")
26
27ff_loc = input("Please input the location of your Firefox binary: ")
28gd_loc = input("Please input the location of the geckodriver binary: ")
29site_key = input("Please input your 2captcha API Key: ")
30
31# load webdriver, add an implicit wait so the DOM doesn't time out immediately, and load the page
32driver = webdriver.Firefox(executable_path=gd_loc, firefox_binary=ff_loc)
33driver.implicitly_wait(15)
34driver.get("https://secure.jfs.ohio.gov/covid-19-fraud/")
35
36# random number generator to get randints from list lengths
37def getRand(listname):
38 max = (len(listname) - 1)
39 return random.randint(1, max)
40
41# main function
42def spamCapitalistRunningDogs():
43 #make a buncha bullshit up here outta the lists above
44 fakeCompany = large_companies[getRand(large_companies)]
45 fakePrefix = email_prefixes[getRand(email_prefixes)]
46 fakeDomain = re.sub('[^A-Za-z0-9]+', '', fakeCompany).lower()
47 fakeEmail = fakePrefix+"@"+fakeDomain+".com"
48 fakeAddress = addresses[getRand(addresses)]
49 fakeEIN = random.randint(152642643,987438523)
50 fakeName = fakeNames[getRand(fakeNames)]
51 fakeCounty = counties[getRand(counties)]
52
53 # site key for 2captcha, the google key for the site, and page URL. construct the 2captcha req url
54 google_key = "6LeUjPMUAAAAAOS5-5-v6eYvvezY9vs-cW4uQNR2"
55 pageURL = "https://secure.jfs.ohio.gov/covid-19-fraud/"
56 captchaURL = "http://2captcha.com/in.php?key="+site_key+"&method=userrecaptcha&googlekey="+google_key+"&pageurl="+pageURL
57
58 # make sure the page loads (check the title) if it doesn't, refresh it
59 try:
60 element = WebDriverWait(driver, 10).until(
61 EC.title_contains(("Office of Unemployment"))
62 )
63 except:
64 driver.refresh()
65 finally:
66 check = driver.find_elements_by_xpath("//input[@type='radio']")
67 no1 = check[1].click()
68 no2 = check[3].click()
69 yes1 = check[4].click()
70 yes2 = check[6].click()
71 yes3 = check[8].click()
72 text = driver.find_elements_by_xpath("//input[@type='text']")
73 nameBox = text[2].send_keys(fakeCompany)
74 numBox = text[3].send_keys(fakeEIN)
75 emailBox = text[4].send_keys(fakeEmail)
76 addrBox = text[5].send_keys(fakeAddress[0])
77 cityBox = text[6].send_keys(fakeAddress[1])
78 zipBox = text[7].send_keys(random.randint(43001, 45999))
79 emp1Box = text[13].send_keys(fakeName[0])
80 emp2Box = text[14].send_keys(fakeName[1])
81 print("Wow! "+fakeCompany+" sure is mad at "+fakeName[0]+" "+fakeName[1]+"(ʘ 言ʘ ╬)" )
82 stateSL = driver.find_element_by_xpath('//*[@id="EmployerState"]')
83 driver.execute_script("arguments[0].value = 'OH';", stateSL)
84 countySL = driver.find_element_by_xpath('//*[@id="EmployerCounty"]')
85 driver.execute_script("arguments[0].value ='"+fakeCounty+"';", countySL)
86 # the meat and potatoes. first we make the captcha response input visible.
87 captchaInput = driver.find_element_by_xpath('//*[@id="g-recaptcha-response"]')
88 driver.execute_script("arguments[0].style.display = 'block';", captchaInput)
89 # now we use requests to get the solve ID from 2captcha
90 resp = requests.get(captchaURL)
91 # if this doesn't work, fuck!
92 if resp.text[0:2] != 'OK':
93 print("ERROR:\n"+resp.text)
94 return
95 captcha_id = resp.text[3:]
96 solveURL = "http://2captcha.com/res.php?key="+site_key+"&action=get&id="+captcha_id
97 # the number you get back from 2captcha is the captcha ID, add it to the end of the solve url
98 while True:
99 time.sleep(5)
100 solve = requests.get(solveURL)
101 # submit the solve request -- if the answer is anything but "ok!," aka the solved response, it'll try again (bc sometimes it can take a while) once it hits "OK" it'll break. i should probably change this to an if loop with limits so i don't get banned or spend a million dollars
102 if solve.text[3:] == "CAPTCHA_NOT_READY":
103 print(".", end = '')
104 continue
105 # this is an error that's come up so uh. yeah guess i had to work this in
106 else:
107 break
108 try:
109 driver.find_element_by_xpath('//*[@id="g-recaptcha-response"]').send_keys(solve.text[3:])
110 submit = driver.find_element_by_xpath('//*[@id="ctl00_ContentPlaceHolder1_FormBlock1_content"]/p[5]/input[1]').click()
111 time.sleep(1)
112 again = driver.find_element_by_xpath('//*[@id="ctl00_ContentPlaceHolder1_lnkSendAnother"]').click()
113 print("Success!")
114 except:
115 driver.refresh()
116 print("Well, let's try again.")
117
118while True:
119 spamCapitalistRunningDogs()