Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created May 15, 2019 19:43
Show Gist options
  • Select an option

  • Save BetterProgramming/ee9f8dbbafff1bc6ff200ed12f495806 to your computer and use it in GitHub Desktop.

Select an option

Save BetterProgramming/ee9f8dbbafff1bc6ff200ed12f495806 to your computer and use it in GitHub Desktop.
# scraper.py
import os
import requests
from BeautifulSoup import BeautifulSoup
from apscheduler.schedulers.blocking import BlockingScheduler
from datetime import datetime
sch = BlockingScheduler()
def main():
url = 'https://www.indeed.com/jobs?q=web%20developer&l=Denver%2C%20CO&vjk=0c0f7c56b3d79b4c'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
matches = soup.findAll(name='div', attrs={'class': 'title'})
for jobTitle in matches:
if "Junior" in jobTitle.text:
os.system("osascript sendMessage.scpt YOUR_NUMBER_HERE 'YOUR_MESSAGE_HERE' ")
break
elif "Jr" in jobTitle.text:
os.system("osascript sendMessage.scpt YOUR_NUMBER_HERE 'YOUR_MESSAGE_HERE' ")
break
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment