Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdig/romatsa_parser
Parse the latest article from an RSS feed, and if it's newly posted, alert the intended recipients (Designed to keep up with ROMATSA's job openings)
https://github.com/rdig/romatsa_parser
Last synced: 18 days ago
JSON representation
Parse the latest article from an RSS feed, and if it's newly posted, alert the intended recipients (Designed to keep up with ROMATSA's job openings)
- Host: GitHub
- URL: https://github.com/rdig/romatsa_parser
- Owner: rdig
- License: mit
- Created: 2015-10-06T23:16:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-06T23:25:32.000Z (about 9 years ago)
- Last Synced: 2024-04-21T17:07:11.404Z (7 months ago)
- Language: PHP
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
### Scope
This is a script design to parse an RSS feed (specifically [http://www.romatsa.ro](http://www.romatsa.ro)'s) crawl the latest article, and if it's a new article (different title from the last) then save the new data and write an email informing people about it.
This script was designed to run as a cron job from the command-line. It is not intended to be from from a web server / accessed from a browser. If you need it though, make sure to remove the `deny` rule from `.htaccess`
This was designed as to keep up with ROMATSA's new job openings and scheduling updates.
---------------------------------------
### File Permisssions
As it is intended to run from the command line, it is assumed that you have write access to all folders. In the event of running this from a browser, make sure your webserver user / group has write access to the following folder
data/
---------------------------------------
### Config
The `config.php` file contains some variables / CONSTANTS that need to be changed to adapt to your needs. You can set the json file location and name, RSS feed url, and contact emails.
If you need to add multiple emails, just continue adding arrays, as the script will loop though.
---------------------------------------
### Gmail Warning
Gmail really hates when you send html format email to it's accounts, especially if it's from a poorly configured email server, or a server which is not suposed to handle email at all (eg: web server).
So if you're mail doesn't show up, first thing you can try is to make the mailer send plaintext instead. (`Content-Type: text/plain;`)