File 1: [url removed, login to view]
The format of [url removed, login to view] will look like this:
File 2: [url removed, login to view]
When [url removed, login to view] is run from a cron job, it will go to the URL
(mentioned above) that is to be scraped.
This URL contains prices that look like this:
Title 1 - $349 + $395
Title 2 - $265 + $290
The script will need to compare the prices on the website, to what is
in [url removed, login to view]
For example, Title 1 is $349 + $395, or $744 total. The
script sees that 'Title 1' in [url removed, login to view] is specified as
900. Since $744 is less than $900, it will send me an e-mail. If the
price were over 900, it would not send me an e-mail.
It compares all prices from the URL with [url removed, login to view] and sends an
e-mail if any of the prices are less than what is specified in
[url removed, login to view]
The e-mail to be sent is just a basic one, that contains the title,
and the price found.
SUBJECT: Title 1 under $900
BODY: Price: 744
Date To: May 07
Date Return: May 15
- The script should also send an e-mail if it finds a "Title" on the
website that is not found in scrape.txt. For example, if the script
finds 'Title 8' at the URL but
'Title 8' is not specified in [url removed, login to view] it would send an
SUBJECT: Title 8 not found
BODY: 'Title 8' not found
- When an e-mail regarding a cheap price has been sent, the script
should note that it has sent an e-mail, and what price it found. The
next time the script is executed from the cron, it should not send
another e-mail unless the price has changed. This is just to prevent
the script from sending e-mails over and over about the same price.
Example: In this example, the script found a price from Title 1 for $744.
It would note that it has found a price for $744,
and the next time the script is executed, it would not notify me with
another e-mail unless the price is different from $744.
*Important* - I would also like this script to avoid using a MySQL database.
I have PHP5.x on the server to run the script.
One thing I forgot to mention before. In some cases, there will be
two prices, for example at the URL:
Title 3 - $324 + $373 ($697 total)
Title 3 - $194 + $373 ($567 total)
The script should only 'notice' the lowest total price, which is $567
and ignore $697 completely.