红衣服 发表于 2016-8-26 21:31:57

{:5_91:}我真的是来学习的

superwh 发表于 2016-8-27 03:29:02

来学习下,呵呵。

a36251229 发表于 2016-8-27 07:22:10

感谢

第五学 发表于 2016-9-6 18:15:53

感谢分享{:5_111:}

第五学 发表于 2016-9-6 18:16:23

第五学 发表于 2016-9-6 18:15
感谢分享

这个表情。。。。。。。。。。。

YoooKnight 发表于 2016-9-7 09:17:51

瞅瞅

difoi_python 发表于 2016-9-7 16:07:37

看看........

cutefuloveme 发表于 2016-9-7 19:40:21

感謝分享

cutefuloveme 发表于 2016-9-7 19:41:03

感謝分享

linwanjia 发表于 2016-9-8 17:50:06

感谢,可算找到了。

Ricardo.M.Jiang 发表于 2016-9-8 20:12:14

不错,看一看

小莱 发表于 2016-9-8 22:59:41

学习

程-程 发表于 2016-9-13 13:57:54

楼主真好啊,谢谢

superFeng777 发表于 2016-9-14 12:49:07

{:10_245:}python3貌似运行有错误

genius_7321 发表于 2016-9-15 14:08:16

108行是什么意思啊

genius_7321 发表于 2016-9-17 01:04:53

新手表示103到110没看懂呢

geniusfan 发表于 2016-9-17 21:51:38

都是老司机

wangweirr 发表于 2016-9-18 09:36:33

许多高校不能呢

genius_7321 发表于 2016-9-18 10:18:36

报了一堆错误出来。。。
远程主机强迫关闭了一个现有的连接。
Traceback (most recent call last):
File "E:\Python Practice\downpic\yande.py", line 34, in get_response
    response = urllib.request.urlopen(req)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 228, in urlopen
    return opener.open(url, data, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 531, in open
    response = self._open(req, data)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 549, in _open
    '_open', req)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 509, in _call_chain
    result = func(*args)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 1347, in http_open
    return self.do_open(http.client.HTTPConnection, req)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 1322, in do_open
    r = h.getresponse()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1246, in getresponse
    response.begin()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 297, in begin
    version, status, reason = self._read_status()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\socket.py", line 575, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: 远程主机强迫关闭了一个现有的连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\random.py", line 253, in choice
    i = self._randbelow(len(seq))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\random.py", line 230, in _randbelow
    r = getrandbits(k)          # 0 <= r < 2**k
ValueError: number of bits must be greater than zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\Python Practice\downpic\yande.py", line 127, in <module>
    get_proxy()
File "E:\Python Practice\downpic\yande.py", line 58, in get_proxy
    response = get_response(req)
File "E:\Python Practice\downpic\yande.py", line 46, in get_response
    change_proxy()
File "E:\Python Practice\downpic\yande.py", line 75, in change_proxy
    proxy = random.choice(proxies)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\random.py", line 255, in choice
    raise IndexError('Cannot choose from an empty sequence')
IndexError: Cannot choose from an empty sequence

cuibaowenown2 发表于 2016-9-18 15:14:51

genius_7321 发表于 2016-9-18 10:18
报了一堆错误出来。。。

看提示是远程主机关闭了响应,过会儿再爬吧
页: 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 21 22 23 24
查看完整版本: 自动抓取代理IP并智能更换IP爬yande.re原图的爬虫(15禁)