Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Script to extract urls?

Script to extract urls?
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jun 25, 2005, 09:31 AM
 
Anyone run across or create a Scritpt to extract urls (specifically RSS feed urls) from source code?
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Jun 26, 2005, 10:49 AM
 
The usual method to do this is to use regular expressions (regexp). There are more versions of this than you can shake a stick at. And it all depends on what exactly you are doing in that language. For RSS feeds you might even want to use a DOM xml parser so that you can always know what the data you are getting is.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2