Automatically apply to jobs with this python bot.

Automatically apply to jobs with this python bot.

Applying to jobs can be a tedious job why not let a bot handle it?

I personally love Instahyre as they don’t ask any follow-up questions and it's just one click to apply.

So let's use python to do this instead.

from selenium import webdriver
from selenium.webdriver.common.by import By
import time

# configure your email and password here
email = "youremail@example.com"
password = "yourpass"

# create a new browser instance
driver = webdriver.Firefox()

# navigate to the website
driver.get("https://www.instahyre.com/")

# locate the login button and click on it
login_button = driver.find_element(By.XPATH, "//a[@href='/login/']")
login_button.click()

# locate the email and password fields and enter the values
email_field = driver.find_element(By.ID, "email")
email_field.send_keys(email)
password_field = driver.find_element(By.ID, "password")
password_field.send_keys(password)

# locate the submit button and click on it
submit_button = driver.find_element(By.XPATH, "//button[@type='submit']")
submit_button.click()

# wait for 3 seconds after login
time.sleep(3)

# locate the first view button and click on it
view_button = driver.find_elements(By.XPATH, "//button[contains(text(), 'View')]")[0]
view_button.click()

# wait for 3 seconds
time.sleep(3)

# number of applications to be sent
t = 1000
while t > 0:
try:
# locate the apply button and click on it
apply_button = driver.find_element(By.XPATH, "//button[contains(text(), 'Apply')]")
apply_button.click()
except:
print("Apply button not found.")
# wait for 1 seconds
t -= 1
time.sleep(1)

driver.quit()

In order to run this script all you need is to install python

Create a virtual environment and set it up

python3 -m venv env source env/bin/activate

then use pip to install the requirements with

pip install -r requirements.txt

attrs==22.2.0
async-generator==1.10
black==22.12.0
certifi==2022.12.7
cffi==1.15.1
click==8.1.3
colorama==0.4.6
exceptiongroup==1.1.0
h11==0.14.0
idna==3.4
mypy-extensions==0.4.3
outcome==1.2.0
pathspec==0.10.3
platformdirs==2.6.2
pycparser==2.21
PySocks==1.7.1
selenium==4.7.2
sniffio==1.3.0
sortedcontainers==2.4.0
tomli==2.0.1
trio==0.22.0
trio-websocket==0.9.2
urllib3==1.26.14
wsproto==1.2.0

Now all you need to do is to enter your email and password and run the script

python ./main.py

Python goes brrrrrrr