Closed Thread
Results 1 to 4 of 4

Thread: Help With Image Link Extraction

  1. #1
    deepnx is offline Newbie
    Join Date
    Feb 2009
    Posts
    2
    Rep Power
    0

    Help With Image Link Extraction

    Hi i want a tool or a script for a bat file .. OR Anything u could provide me with that i can use to do this

    What i want is "Image location" of every image of a web page not link location but "Image Location" ...

    for example this is what i do to Extract all image loacation frm a webpage ...

    in FireFox i use Tools >> Page info >> Media




    and copy the links manually which is HECTIC and TIME CONSUMING with 200+ pages

    now this is what i want help with

    for example i want to extract all image link location from the website

    Code:
    hxxp:/ww.nicole-scherzinger.net/gallery/thumbnails.php?album=lastup&cat=0

    A) i want help for a tool or script that will automatically do that for me and save it in a DOC or a Notepad


    B) if possible will directly go to the next page ie

    Code:
    hxxp:/ww.nicole-scherzinger.net/gallery/thumbnails.php?album=lastup&cat=0&page=2
    if u see here only the part "&page=2" is added to the link ... so we can build up a script that will progress

    +1 after each page links is extracted ... so it will automatically do "&page=3" , "&page=4" ETC ...


    Even if "A" is possible its Ok smile.gif
    ---

    its not HACKING that i am requesting for ... cause taking image locations is not HACKING ... its juzt a small

    request cause i want image links of the Thumbnails ..


    I appreciate u reading this post
    plz do reply even if have any querries relating this ...



    Thank You,
    Deepnx ..

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Help With Image Link Extraction

    I don't think this would be done in a .bat file. Maybe a PHP script, that would then save all the links of it into a text file. It wouldn't be that hard to be honest.
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  4. #3
    deepnx is offline Newbie
    Join Date
    Feb 2009
    Posts
    2
    Rep Power
    0

    Re: Help With Image Link Extraction

    Quote Originally Posted by Brandon W View Post
    I don't think this would be done in a .bat file. Maybe a PHP script, that would then save all the links of it into a text file. It wouldn't be that hard to be honest.
    thnx for the reply Brandon W

    i am a total noob in this matter

    n i juz have this script with me u can test it on Nicole Schnizer website i hv posted above ..

    Code:
    javascript:function collect(){ a="";e=document.getElementsByTagName("img");for(i=0;i<e.length;i++){ a+=e[i].src+"<br />"; } document.body.innerHTML=a; }; void(collect());
    tht reveals all the image links in the site

    i just want all these image links of all the pages available in that site to be copied into a TXT file in one go !

    thnx ...

  5. #4
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Help With Image Link Extraction

    OK, I don't know if you how to do PHP but this is how I would do it.

    I just found this script on Google. I was going to write one if I didn't but this should do what you need.
    Code:
    include("phpHTMLParser.php");
    $content file_get_contents("http://www.onderstekop.nl/");
    $parser = new phpHTMLParser("$content");
    $HTMLObject $parser->parse_tags(array("a""title"));
    $aTags $HTMLObject->getTagsByName("a");
    foreach (
    $aTags as $a) {
       if (
    $a->href != "") {
          echo 
    $a->href "<br/>";
          echo 
    $a->innerHTML "<br/><br/>";
       }
    }
    ?> 
    You will just need to edit a few things to make it work. I got it from here. And there you can download the include as well.
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. image link problem
    By mutago in forum Java Help
    Replies: 1
    Last Post: 03-28-2011, 11:52 PM
  2. Link to display uploaded image(s)
    By batowiise in forum PHP Development
    Replies: 0
    Last Post: 01-11-2011, 06:29 AM
  3. Facial Feature Extraction in C#
    By mkfrns in forum C# Programming
    Replies: 0
    Last Post: 11-04-2010, 07:08 AM
  4. Data extraction.
    By joe1986 in forum Perl
    Replies: 4
    Last Post: 12-14-2007, 11:03 AM
  5. Image to PDF Dynamic Link Library 1.7
    By Kernel in forum Software Development Tools
    Replies: 0
    Last Post: 09-27-2006, 05:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts