Re: cut strings and parse for images

2004-12-07 Thread Andreas Volz
Am Tue, 07 Dec 2004 00:40:02 GMT schrieb Paul McGuire: > Is this in the ballpark of where you are trying to go? Yes, thanks. You helped me a lot. Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: cut strings and parse for images

2004-12-06 Thread Paul McGuire
"Andreas Volz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Am Mon, 06 Dec 2004 20:36:36 GMT schrieb Paul McGuire: > > > Check out the urlparse module (in std distribution). For images, you > > can provide a default addressing scheme, so you can expand > > "images/marine.jpg" rela

Re: cut strings and parse for images

2004-12-06 Thread Andreas Volz
Am Mon, 06 Dec 2004 20:36:36 GMT schrieb Paul McGuire: > Check out the urlparse module (in std distribution). For images, you > can provide a default addressing scheme, so you can expand > "images/marine.jpg" relative to the current location. Ok, this looks good. But I'm a really newbie to pytho

Re: cut strings and parse for images

2004-12-06 Thread Steve Holden
Andreas Volz wrote: Hi, I used SGMLParser to parse all href's in a html file. Now I need to cut some strings. For example: http://www.example.com/dir/example.html Now I like to cut the string, so that only domain and directory is left over. Expected result: http://www.example.com/dir/ I know how

Re: cut strings and parse for images

2004-12-06 Thread Paul McGuire
"Andreas Volz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I used SGMLParser to parse all href's in a html file. Now I need to cut > some strings. For example: > > http://www.example.com/dir/example.html > > Now I like to cut the string, so that only domain and directory i

cut strings and parse for images

2004-12-06 Thread Andreas Volz
Hi, I used SGMLParser to parse all href's in a html file. Now I need to cut some strings. For example: http://www.example.com/dir/example.html Now I like to cut the string, so that only domain and directory is left over. Expected result: http://www.example.com/dir/ I know how to do this in ba