Python

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentPython

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old February 25th, 2009, 10:21 PM
leo1980 leo1980 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 1 leo1980 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 14 sec
Reputation Power: 0
Pls help me ---- urllib2

i use urllib2 to open the websites and get info. it works for a while, then will be stopped, the error in idle is http error 404 no such domain. but i just changed the parameters in the url by looping, and i can open it in ie or firefox. any one have any idea to deal with it? if I running 2 more similar programs in command line at same time, them will be stopped more sooner.

my code is running in python 2.5 + tor.

Thks a lot.


"Traceback (most recent call last):
File "C:\Documents and Settings\XXXX\Desktop\NZ_New - Copy\NZ 1- 40 14022009\nz_new1.py", line 191, in <module>
Main()
File "C:\Documents and Settings\XXXX\Desktop\NZ_New - Copy\NZ 1- 40 14022009\nz_new1.py", line 69, in Main
Process(1)
File "C:\Documents and Settings\XXXX\Desktop\NZ_New - Copy\NZ 1- 40 14022009\nz_new1.py", line 141, in Process
input_page = urllib2.urlopen(req)
File "C:\Python25\lib\urllib2.py", line 121, in urlopen
return _opener.open(url, data)
File "C:\Python25\lib\urllib2.py", line 380, in open
response = meth(req, response)
File "C:\Python25\lib\urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python25\lib\urllib2.py", line 418, in error
return self._call_chain(*args)
File "C:\Python25\lib\urllib2.py", line 353, in _call_chain
result = func(*args)
File "C:\Python25\lib\urllib2.py", line 499, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: No such domain"

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPython > Pls help me ---- urllib2


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap