Re: [Tutor] Pictures

2011-05-04 Thread louis leichtnam
Hello, I tried it and it works, though if I change the web site from http://finance.blog.lemonde.fr to http://www. ...something else it doesn't work. DO I have to change the '([\S]+)' in x=re.findall(r" > Observing the page source i think : > > page=urllib.urlopen('http://finance.blog.lemon

Re: [Tutor] Pictures

2011-04-28 Thread naheed arafat
Observing the page source i think : page=urllib.urlopen('http://finance.blog.lemonde.fr').read() x=re.findall(r"http://s2.lemde.fr/image/2011/02/16/87x0/1480844_7_87fe_bandeau-lycee-electrique.jpg " x.extend(y) x=list(set(x)) for img in x: image=img.split('.')[-1]

Re: [Tutor] Pictures

2011-04-28 Thread naheed arafat
On Thu, Apr 28, 2011 at 6:48 PM, Joel Goldstick wrote: > > > On Wed, Apr 27, 2011 at 11:41 PM, wrote: > >> Hello, >> >> I'm still quite new at this but I'm trying to get a list of the pictures >> adress (... .jpg) of a page of a website. >> >> I thought of using the import urllib and import re, t

Re: [Tutor] Pictures

2011-04-28 Thread Joel Goldstick
On Wed, Apr 27, 2011 at 11:41 PM, wrote: > Hello, > > I'm still quite new at this but I'm trying to get a list of the pictures > adress (... .jpg) of a page of a website. > > I thought of using the import urllib and import re, trying to fetch the > website, parse it, and collect the adresses but

Re: [Tutor] Pictures

2011-04-27 Thread Wayne Werner
On Wed, Apr 27, 2011 at 10:41 PM, wrote: > Hello, > > I'm still quite new at this but I'm trying to get a list of the pictures > adress (... .jpg) of a page of a website. > > I thought of using the import urllib and import re, trying to fetch the > website, parse it, and collect the adresses but

[Tutor] Pictures

2011-04-27 Thread l . leichtnam
Hello, I'm still quite new at this but I'm trying to get a list of the pictures adress (... .jpg) of a page of a website. I thought of using the import urllib and import re, trying to fetch the website, parse it, and collect the adresses but I don't know how to do it... Can you help me? Thank