[Tutor] Urllib Problem

George Anonymous strangegeorge2 at gmail.com
Fri Jul 29 11:52:49 CEST 2011


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 it doesent work.Whats the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110729/26619d3f/attachment.html>


More information about the Tutor mailing list