A simple script to automatically fetch and notify about new Upwork jobs from an RSS feed. Ideal for developers and freelancers to stay updated with the latest job postings.
- Fetches the latest job postings from a specified Upwork RSS feed.
- Compares the fetched jobs with the ones from the last check.
- Sends an email alert with the details of the new jobs.
- PHP environment
- Composer (to install dependencies)
-
Clone or download this repository to your local machine.
git clone https://github.com/oldravian/upwork-job-alerts.git
-
Navigate to the project directory.
cd upwork-job-alerts
-
Install the required dependencies using Composer.
composer install
-
Configure your email settings in the mailer.php script to ensure you can send and receive email alerts. The script uses the PHPMailer library for this.
-
To fetch jobs from a different Upwork category or filter, modify the RSS feed URL in the script.
-
Customize your search criteria on Upwork and get your RSS feed URL to put in the script
-
Provide the recipient email in alert.php script.
To ensure the script runs automatically at regular intervals (e.g., every two minutes), you can set up a cron job:
-
Open your crontab with the command:
crontab -e
-
Add the following line to run the script every two minutes (modify the path to match your setup):
*/2 * * * * /usr/bin/php /var/www/html/upwork-job-alerts/alert.php
-
Save and exit.
Remember to adjust the path and the frequency as per your needs.