Home Download Buy Blog Forum Support

how to extract all .png urls from file?

how to extract all .png urls from file?

Postby blimer on Sat Jun 29, 2013 2:35 pm

ie i have a bunch of HTML, and i just want to extract all the urls for the images.. how can i do that with sublime?

Thanks
blimer
 
Posts: 1
Joined: Sat Jun 29, 2013 2:33 pm

Re: how to extract all .png urls from file?

Postby Eduan on Sat Jun 29, 2013 5:23 pm

You want to remove them or you want to simply find them? Or do you want to find them and put them in something like a text file or something like that?
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: how to extract all .png urls from file?

Postby Vortico on Wed Jul 03, 2013 5:49 pm

Sublime is an editor, so you could use it to craft up a Python or Ruby script using the Requests or Nokogiri.
Vortico
 
Posts: 8
Joined: Fri Jul 13, 2012 1:12 am

Re: how to extract all .png urls from file?

Postby tito on Wed Jul 03, 2013 6:02 pm

1. select ".png"
2. ALT+F3 (select all .png)
3. CTRL+SHIFT+SPACE (expand selections to scope)
4. CTRL+C, CTRL+N, CTRL+V
??
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 876
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: how to extract all .png urls from file?

Postby jbrooksuk on Thu Jul 04, 2013 9:33 am

tito wrote:1. select ".png"
2. ALT+F3 (select all .png)
3. CTRL+SHIFT+SPACE (expand selections to scope)
4. CTRL+C, CTRL+N, CTRL+V
??

If your scope is a string, then it includes the " either side, bit annoying.
jbrooksuk
 
Posts: 782
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: how to extract all .png urls from file?

Postby quodlibet on Thu Jul 04, 2013 4:27 pm

Code: Select all
Select any `"`
Alt+F3
Del
quodlibet
 
Posts: 561
Joined: Sat Jun 18, 2011 5:53 pm


Return to General Discussion

Who is online

Users browsing this forum: BugFix and 17 guests