Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming
Register Blogs Search Today's Posts Mark Forums Read

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-2009, 07:37 AM
Newbie
 
Join Date: Feb 2009
Posts: 2
deepnx is an unknown quantity at this point
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 ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2009, 08:06 AM
Brandon W's Avatar
Code Warrior
 
Join Date: Sep 2008
Location: Australia
Age: 16
Posts: 4,824
Brandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to all
Send a message via MSN to Brandon W
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2009, 09:15 AM
Newbie
 
Join Date: Feb 2009
Posts: 2
deepnx is an unknown quantity at this point
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 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2009, 04:26 PM
Brandon W's Avatar
Code Warrior
 
Join Date: Sep 2008
Location: Australia
Age: 16
Posts: 4,824
Brandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to allBrandon W is a name known to all
Send a message via MSN to Brandon W
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.
PHP 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize Images And Maintain Original Sharpness AfTriX Photoshop Tutorials 10 01-06-2010 06:59 PM
scale image bubuzzz Java Help 3 06-01-2009 05:59 AM
Image association v0id Games 40 10-22-2008 05:29 PM
Image to PDF Dynamic Link Library 1.7 Kernel Software Development Tools 0 09-27-2006 08:44 AM
Link exchanges Kaabi Search Engine Optimization 2 08-03-2006 10:34 PM


All times are GMT -5. The time now is 11:18 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0