Devam Ediyor

477738 One more scraping project (PHP) 2

this project is regarding scraping prices from a website.

The URL that is to be scraped is: [url removed, login to view]

And here is a description of the project, as posted on ScriptLance.

Please note that I have changed the names of the files. And I will

change the names of the Titles, so that it's easier to understand what

I'm looking for.

File 1: [url removed, login to view]

---------------------------

The format of [url removed, login to view] will look like this:

"Calgary to Frankfurt";"900"

"Calgary to Puerto Vallarta";"300"

"Calgary to Manchester";"1000"

"Edmonton to London";"1000"

"Edmonton to Los Cabos";"1000"

etc, etc.

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:

Calgary to Frankfurt - $349 + $395

Calgary to Puerto Vallarta - $265 + $290

etc, etc.

The script will need to compare the prices on the website, to what is

in [url removed, login to view]

For example, Calgary to Frankfurt is $349 + $395, or $744 total. The

script sees that 'Calgary to Frankfurt' 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.

example e-mail:

SUBJECT: Calgary to Frankfurt under $900

BODY: Price: 744

Date To: May 07

Date Return: May 15

Link: [url removed, login to view]

Other features:

- The script should also send an e-mail if it finds a "City To" on the

website that is not found in escapes.txt. For example, if the script

finds 'Calgary to New York' at [url removed, login to view] but

'Calgary to New York' is not specified in [url removed, login to view] it would sent an

e-mail.

example e-mail:

SUBJECT: Calgary to New York not found

BODY: 'Calgary to New York' not found at [url removed, login to view]

- 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 Calgary to

Frankfurt 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 [url removed, login to view] you can see:

Montreal to Paris - $324 + $373 ($697 total)

Montreal to Paris - $194 + $373 ($567 total)

The script should only 'notice' the lowest total price, which is $567

and ignore $697 completely.

Beceriler: .NET, Her şey Kabul, MySQL, Perl, PHP, Web Scraping

Daha fazlasını görün: what is job id, website edmonton, subject php, sent one, scraping com, scraping a server, php is, new york job, look php id, cases for less, what is scriptlance, vallarta, url scraping, sax, puerto, one thing, mail sending job, esc, cgi php server, perl change file, database project php, website scraping php, mysql project posted, php server cron job, website paris

İşveren Hakkında:
( 26 değerlendirme ) Cairo, Egypt

Proje NO: #2223645