Re: [Tutor] Urllib Problem

2011-07-29 Thread Steven D'Aprano
George Anonymous wrote: I am trying to make a simple programm with Python 3,that tries to open differnet pages from a wordlist and prints which are alive.Here is the code: from urllib import request fob=open('c:/passwords/pass.txt','r') x = fob.readlines() for i in x: urllib.request.openurl('

Re: [Tutor] Urllib Problem

2011-07-29 Thread Alexander
On Fri, Jul 29, 2011 at 5:58 AM, Karim wrote: > ** > On 07/29/2011 11:52 AM, George Anonymous wrote: > > I am trying to make a simple programm with Python 3,that tries to open > differnet pages from a wordlist and prints which are alive.Here is the code: > from urllib import request > fob=open('c

Re: [Tutor] Urllib Problem

2011-07-29 Thread Karim
On 07/29/2011 11:52 AM, George Anonymous wrote: I am trying to make a simple programm with Python 3,that tries to open differnet pages from a wordlist and prints which are alive.Here is the code: from urllib import request fob=open('c:/passwords/pass.txt','r') x = fob.readlines() for i in x:

[Tutor] Urllib Problem

2011-07-29 Thread George Anonymous
I am trying to make a simple programm with Python 3,that tries to open differnet pages from a wordlist and prints which are alive.Here is the code: from urllib import request fob=open('c:/passwords/pass.txt','r') x = fob.readlines() for i in x: urllib.request.openurl('www.google.gr/' + i) But

Re: [Tutor] urllib problem

2010-10-12 Thread Alan Gauld
"Roelof Wobben" wrote Finally solved this puzzle. Now the next one of the 33 puzzles. Don;t be surprised if you get stuck. Python Challenge is quite tricky and is deliberately designed to make you explore parts of the standard library you might not otherwise find. Expect to do a lot of readi

Re: [Tutor] urllib problem

2010-10-12 Thread Roelof Wobben
> From: st...@pearwood.info > To: tutor@python.org > Date: Wed, 13 Oct 2010 01:51:16 +1100 > Subject: Re: [Tutor] urllib problem > > On Tue, 12 Oct 2010 11:58:03 pm Steven D'Aprano wrote: > > On Tue, 12 Oct 2010 11:40:17 pm R

Re: [Tutor] urllib problem

2010-10-12 Thread Roelof Wobben
> From: st...@pearwood.info > To: tutor@python.org > Date: Tue, 12 Oct 2010 23:58:03 +1100 > Subject: Re: [Tutor] urllib problem > > On Tue, 12 Oct 2010 11:40:17 pm Roelof Wobben wrote: >> Hoi, >> >> I have this prog

Re: [Tutor] urllib problem

2010-10-12 Thread Steven D'Aprano
On Tue, 12 Oct 2010 11:58:03 pm Steven D'Aprano wrote: > On Tue, 12 Oct 2010 11:40:17 pm Roelof Wobben wrote: > > Hoi, > > > > I have this programm : > > > > import urllib > > import re > > f = > > urllib.urlopen("http://www.pythonchallenge.com/pc/def/linkedlist.ph > >p? nothing=6") inhoud = f.read

Re: [Tutor] urllib problem

2010-10-12 Thread Steven D'Aprano
On Tue, 12 Oct 2010 11:40:17 pm Roelof Wobben wrote: > Hoi, > > I have this programm : > > import urllib > import re > f = > urllib.urlopen("http://www.pythonchallenge.com/pc/def/linkedlist.php? >nothing=6") inhoud = f.read() > f.close() > nummer = re.search('[0-9]', inhoud) > volgende = int(nummer

Re: [Tutor] urllib problem

2010-10-12 Thread Evert Rol
> I have this program : > > import urllib > import re > f = > urllib.urlopen("http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=6";) > inhoud = f.read() > f.close() > nummer = re.search('[0-9]', inhoud) > volgende = int(nummer.group()) > teller = 1 > while teller <= 3 : > url = "

[Tutor] urllib problem

2010-10-12 Thread Roelof Wobben
Hoi, I have this programm : import urllib import re f = urllib.urlopen("http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=6";) inhoud = f.read() f.close() nummer = re.search('[0-9]', inhoud) volgende = int(nummer.group()) teller = 1 while teller <= 3 : url = "http://www.py