[Tutor] Urllib Problem

Karim karim.liateni at free.fr
Fri Jul 29 11:58:52 CEST 2011


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:
>     urllib.request.openurl('www.google.gr/ <http://www.google.gr/>' + i)
>
> But it doesent work.Whats the problem?


Please give the exception error you get?!
And you should have in the html header
the html code error number which gives
you the fail answer from the server.

Cheers
Karim

>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110729/f84d110a/attachment.html>


More information about the Tutor mailing list