+ Reply to Thread
Results 1 to 4 of 4

Thread: Help With Image Link Extraction

  1. #1
    Newbie deepnx is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    2

    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. #2
    Code Warrior Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W's Avatar
    Join Date
    Sep 2008
    Location
    Australia
    Age
    16
    Posts
    4,824
    Blog Entries
    10

    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!

  3. #3
    Newbie deepnx is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    2

    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 ...

  4. #4
    Code Warrior Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W's Avatar
    Join Date
    Sep 2008
    Location
    Australia
    Age
    16
    Posts
    4,824
    Blog Entries
    10

    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!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Resize Images And Maintain Original Sharpness
    By AfTriX in forum Photoshop Tutorials
    Replies: 11
    Last Post: 03-10-2010, 05:33 PM
  2. scale image
    By bubuzzz in forum Java Help
    Replies: 3
    Last Post: 06-01-2009, 04:59 AM
  3. Image association
    By v0id in forum Games
    Replies: 40
    Last Post: 10-22-2008, 04:29 PM
  4. Image to PDF Dynamic Link Library 1.7
    By Kernel in forum Software Development Tools
    Replies: 0
    Last Post: 09-27-2006, 07:44 AM
  5. Link exchanges
    By Kaabi in forum Search Engine Optimization
    Replies: 2
    Last Post: 08-03-2006, 09:34 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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