Fetch all links and their images from HTML page

This project was successfully completed by urukalo for $150 USD in a day.

Get free quotes for a project like this
Project Budget
Completed In
1 day
Total Bids
Project Description

Fetch all links and their images from HTML page

[url removed, login to view]

^ A lot/most of the functions you can get from there. Not all required files (fe [url removed, login to view]) or linked, you have to find them like this:

[url removed, login to view]

- 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/[url removed, login to view]" then make it

"[url removed, login to view]":

self::make_absolute($image->getAttribute('src'), $this->base)

- If link contains "[url removed, login to view]" or "url=", then strip it down to what follows after that:

if (strpos($url,'[url removed, login to view]') !== false) {

$url = explode('[url removed, login to view]', $url);

$url = $url[1];

- If link == "#", then get URL from onClick action.

< a href="#" onclick(javascript:openGallery("/[url removed, login to view]")

$url should be "[url removed, login to view]" and not "#".

- So in [url removed, login to view] there's gonna be all the pictures of the URL. When you click on one of those, it opens [url removed, login to view] which does the same as [url removed, login to view], with the given link!

Load up all links+images of link (fe "[url removed, login to view]") in gallery.php.

- In [url removed, login to view] there's pictures again, they point to "[url removed, login to view]" or "[url removed, login to view]". If it points to jpg then display that file in a lightbox!!

If it points to [url removed, login to view], then do this: Fetch the biggest image file of [url removed, login to view], then display that in a lightbox. You will find several images in [url removed, login to view], 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 [url removed, login to view]://[url removed, login to view] link will often not redirect to [url removed, login to view], but to I need you to check if the destination is infact [url removed, login to view], and not I want the images from Fetch link again until the content is from

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.


Completed by:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online