![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New Coder ![]() Join Date: Apr 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
Hi,
I'm looking for an app, or online form, to extract image URLs from HTML code saved on TXT files. To be taken from <IMG SRC> tags, to be more exact.I have several code snippets like this: Code:
<img src="http://dummy.site.com/here/images/09/10065/file01.jpg" width="64" height="100" alt="image title" /> image name <img src="http://dummy.site.com/here/images/09/10065/file02.jpg" width="64" height="100" alt="image title" /> image name <img src="http://dummy.site.com/here/images/09/10065/file03.jpg" width="64" height="100" alt="image title" /> image name <img src="http://dummy.site.com/here/images/09/10065/file04.jpg" width="64" height="100" alt="image title" /> image name <img src="http://dummy.site.com/here/images/09/10065/file05.jpg" width="64" height="100" alt="image title" /> image name <img src="http://dummy.site.com/here/images/09/10065/file06.jpg" width="64" height="100" alt="image title" /> image name Code:
http://dummy.site.com/here/images/09/10065/file01.jpg http://dummy.site.com/here/images/09/10065/file02.jpg http://dummy.site.com/here/images/09/10065/file03.jpg http://dummy.site.com/here/images/09/10065/file04.jpg http://dummy.site.com/here/images/09/10065/file05.jpg http://dummy.site.com/here/images/09/10065/file06.jpg The code snippets are not too big, just a bit over 100 entries for the bigger ones. I don't care if I have to do it one TXT at a time. Beats doing the whole thing by hand. This is the sort of thing that makes me mad for not being a programmer! Any one of you guys could probably come up with a number of ways to pull this off in just a couple of minutes. And I'm quite sure the tools to pull it off are already out there, but trying a search for it... well, let's just say there's way too much out there, and installing small random apps is really not safe. I may be completely wrong, but I think I was able to feed code like this to flashget, and he'd just go through the whole thing and listed the actual URLs it found on a confirmation box, allowing me then to select just a few and copy them to the clipboard, in the exact same one-URL-per-line format I need here. But somehow my flashget installation got screwed and now I can't figure out what version I was using. Already tested 4 different ones and none of them seems to be able to do that. I need those URLs in that format so I can then batch replace URL segments and, finally, feed the updated URLs to flashget. But the first step is extracting the initial URL from that code. So, any ideas? Thanks. PS: hope I'm not screwing up but posting this here, but I really couldn't find a better match... And it IS HTML related, I guess. |
|
|
|
|
|
PM User | #2 |
|
New to the CF scene Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
why not open it up in a text editor and use the search and replace utility? Just put in search for <img src=" and replace it with an empty space, then search for the ending string and do the same thing?
Jack |
|
|
|
|
|
PM User | #3 |
|
Senior Coder ![]() Join Date: Oct 2008
Location: Some say it's everything.
Posts: 1,255
Thanks: 9
Thanked 223 Times in 219 Posts
![]() ![]() |
You could do this with javascript or PHP if you have a web host that supports PHP.
If you're looking for customized code to be built for you then this thread is probably most appropriately placed in the paid work forum. ![]() If you want to learn to do it yourself and be guided then by all means make an effort of your own and we will help you sort out the issues you run into. The logic involved with this would be pretty simple.
__________________
»» Welcome To odings Forum! «« See Mediocrity in its Infancy || Seek and you shall find... basically: free web tutorials | free hosting (1) (2)| view your page cross-browser/cross-platform It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
|
|
|
|
|
|
PM User | #4 | |||
|
New Coder ![]() Join Date: Apr 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
Hey guys.
Quote:
Quote:
Quote:
My coding skills are zero. I do HTML and CSS, that's about it. Calling that coding is almost like elevating paper airplane throwing to space exploration... Last edited by whopub; 11-30-2009 at 03:17 PM.. Reason: spelling |
|||
|
|
|
|
|
PM User | #5 |
|
New Coder ![]() Join Date: Apr 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
Even an app that goes through text and just extracts all words starting with
http will do (the " can easily be removed later.But still, there must be apps out there to suck URLs out of text files. Anyone? |
|
|
|
![]() |
| Bookmarks |
| Tags |
| extract, html, parse, url |
| Thread Tools | |
| Rate This Thread | |
|
|