Fetch all links and their images from HTML page

IN PROGRESS
Bids
10
Avg Bid (USD)
$284
Project Budget (USD)
$30 - $250

Project Description:
Fetch all links and their images from HTML page

http://samples.geekality.net/image-fetcher/

^ A lot/most of the functions you can get from there. Not all required files (fe header.php) or linked, you have to find them like this:
http://samples.geekality.net/view-source.php?file=header.php

- No form submit like in this example, instead fetch all images from $url = "URL" right away, without a form or pressing Submit.

foreach($this->document->getElementsByTagName('a') as $link) {
foreach($link->getElementsByTagName('img') as $image) {
...

- Drop links which images are smaller than 100 x 100.
Scale down pictures which are bigger than 450 x 600.
Rest shouldn't be scaled down.
Drop pictures that are ads!! Drop header/background images!!

- Make links absolute. (If fetched link is "/gallery/1.html" then make it

"http://domain.com/gallery/1.html":
self::make_absolute($image->getAttribute('src'), $this->base)

- If link contains "out.php?" or "url=", then strip it down to what follows after that:
if (strpos($url,'out.php') !== false) {
$url = explode('out.php?', $url);
$url = $url[1];

- If link == "#", then get URL from onClick action.
< a href="#" onclick(javascript:openGallery("/gallery3.html")
$url should be "http://domain.com/gallery3.html" and not "#".

- So in index.php there's gonna be all the pictures of the URL. When you click on one of those, it opens gallery.php which does the same as index.php, with the given link!
Load up all links+images of link (fe "http://domain.com/gallery3.html") in gallery.php.

- In gallery.php there's pictures again, they point to "http://domain.com/gallery3/1.html" or "http://domain.com/gallery3/1.jpg". If it points to jpg then display that file in a lightbox!!
If it points to 1.html, then do this: Fetch the biggest image file of 1.html, then display that in a lightbox. You will find several images in 1.html, the biggest one is the one I want displayed in a lightbox.

Also fetch biggest image from previous and next link!!! Or all of them already, maybe.
Lightbox should have a next/previous function.

- An out.php?url=http://test.com link will often not redirect to test.com, but to anothersite.com. I need you to check if the destination is infact test.com, and not anothersite.com. I want the images from test.com. Fetch link again until the content is from link.com.
This feature/check is very important.


- Clean php and javascript files.
- Compability with all current browsers!!

- Project has to be finished by:
19th Feb, 1pm EST. That's 11:30pm Indian Time?

By then you have to send me all files.

- Please ask all questions you have right away, so you can get started ASAP.

- I will be requiring some more work on this project, but this is it at first! You get paid again for the new tasks, example: Handling hotlinking problems: download pictures to my server). But this shouldnt concern you at the moment.

- THIS IS NOT A FULL WEBSITE I AM ASKING FOR HERE, ONLY FEW PHP AND JS FILES! Nevermind the html, css, etc.

Skills required:
Javascript, jQuery / Prototype, PHP, Software Architecture, XML
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 1000
in 3 days
Hire vietitdotinfo
$ 30
in 0 days
$ 200
in 1 days
$ 250
in 15 days
$ 150
in 0 days
$ 250
in 12 days
Hire mwyork
$ 225
in 5 days
$ 230
in 7 days
Hire amitsinghal1986
$ 150
in 2 days
$ 350
in 30 days