Startying with Python, need some pointers with manipulating strings

2005-01-27 Thread Benji99
Hi guys, I'm starting to learn Python and so far am very impressed with it's possibilities. I do however need some help with certain things I'm trying to do which as of yet haven't managed to find the answer by myself. Hopefully, someone will be able to give me some pointers :) First my

Re: Startying with Python, need some pointers with manipulating strings

2005-01-27 Thread Paul McGuire
Benji99 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Basically, I'm getting a htmlsource from a URL and need to a.) find specific URLs b.) find specific data c.) with specific URLs, load new html pages and repeat. snip Basically, I want to search through the whole string(

Re: Startying with Python, need some pointers with manipulating strings

2005-01-27 Thread Kent Johnson
Benji99 wrote: I've managed to load the html source I want into an object called htmlsource using: import urllib sock = urllib.urlopen(URL Link) htmlSource = sock.read() sock.close() I'm assuming that htmlSource is a string with \n at the end of each line. NOTE: I've become very accustomed