If you use Upwork and you’d love to get recommended job notifications on your OS X notification center, this is for you. Grab the RSS feed of the recommended jobs from your account and place it inside the URL variable.
To run the script, we need to install some required packages first:
pip install requests --upgrade
pip install pync --upgrade
pip install beautifulsoup4 --upgrade
pip install lxml --upgrade
Then save the following code as “upwork.py”
from bs4 import BeautifulSoup
from pync import Notifier
from urllib.parse import unquote
URL = 'https://www.upwork.com/find-work-home/rss?securityToken=66da1df2fc9020ca1631a0b7775962a521e5761b14de30418e92c4ce67a89b28~6179f50'
response = requests.get(URL)
soup = BeautifulSoup(response.content, 'xml')
items = soup.find_all('item')
for job_posting in items:
Now you can manually run it or add it to cron job. Every time the script is executed, it would fetch all the recommended jobs for you and display in the notifications cenyer. You can afterwards click an item from the notification center to visit the actual job post.