daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Mar 15th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for index in range(len(sections)):      
  2.     br.select_form(name="win1")
  3.     post_url, post_data, headers =  br.form.click_request_data()
  4.     post_data = post_data.replace("ICAction=None", "ICAction=DERIVED_CLSRCH_SSR_CLASSNAME_LONG$"+str(index))
  5.     r = br.open(post_url, post_data) ##ERROR ON THIS LINE
  6.     html = r.read()
  7.  
  8.     if index < range(len(sections)):
  9.         br.select_form(name="win1")
  10.         post_url, post_data, headers =  br.form.click_request_data()
  11.         post_data = post_data.replace("ICAction=None", "ICAction=CLASS_SRCH_WRK2_SSR_PB_BACK")
  12.         r = br.open(post_url, post_data)
  13.         html = r.read()
  14.    
  15. [Sun Aug 12 22:28:04 2012] [error] Traceback (most recent call last):
  16. [Sun Aug 12 22:28:04 2012] [error]   File "C:/wamp/www/python/scrape.py", line 131, in application
  17. [Sun Aug 12 22:28:04 2012] [error]     r = br.open(post_url, post_data)
  18. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_mechanize.py", line 203, in open
  19. [Sun Aug 12 22:28:04 2012] [error]     return self._mech_open(url, data, timeout=timeout)
  20. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_mechanize.py", line 230, in _mech_open
  21. [Sun Aug 12 22:28:04 2012] [error]     response = UserAgentBase.open(self, request, data)
  22. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_opener.py", line 193, in open
  23. [Sun Aug 12 22:28:04 2012] [error]     response = urlopen(self, req, data)
  24. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 344, in _open
  25. [Sun Aug 12 22:28:04 2012] [error]     '_open', req)
  26. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
  27. [Sun Aug 12 22:28:04 2012] [error]     result = func(*args)
  28. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 1170, in https_open
  29. [Sun Aug 12 22:28:04 2012] [error]     return self.do_open(conn_factory, req)
  30. [Sun Aug 12 22:28:04 2012] [error]   File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 1118, in do_open
  31. [Sun Aug 12 22:28:04 2012] [error]     raise URLError(err)
  32. [Sun Aug 12 22:28:04 2012] [error] URLError: <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top