look1z / 91porn-spider Goto Github PK
View Code? Open in Web Editor NEW91porn批量视频、图片下载 ;新手爬虫;novice spider ;多线程
91porn批量视频、图片下载 ;新手爬虫;novice spider ;多线程
{'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'Server': 'nginx/1.
14.0', 'Connection': 'close', 'Date': 'Fri, 28 Sep 2018 08:31:12 GMT', 'Content-
Type': 'text/html'}
404 571 16:31:17
如题,在国外的vps上跑的,然后ubuntu 18.04 anaconda3.请问是什么原因呢?
Exception in thread Thread-8:
Traceback (most recent call last):
File "C:\PY\lib\threading.py", line 808, in __bootstrap_inner
self.run()
File "test4.py", line 20, in run
self.spider(url=page_url)
File "test4.py", line 25, in spider
r = requests.get(url=url, headers=headers)
File "C:\PY\lib\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\PY\lib\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\PY\lib\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "C:\PY\lib\requests\sessions.py", line 644, in send
history = [resp for resp in gen] if allow_redirects else []
File "C:\PY\lib\requests\sessions.py", line 222, in resolve_redirects
**adapter_kwargs
File "C:\PY\lib\requests\sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "C:\PY\lib\requests\adapters.py", line 495, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(10060, ''))
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "test.py", line 131, in spider
video_url = strdecode(input=input, key=strencode[0])
File "test.py", line 34, in strdecode
input = base64.b64decode(input).decode("utf-8")
File "C:\Python27\lib\base64.py", line 75, in b64decode
return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or buffer, not builtin_function_or_method
有详细使用教程吗表示一直报错需要手动修改哪里的参数?
具体怎么使用尼
在目录下建立了一个文件夹img后面设计了ID范围,但是爬下来的都是帖子的文件夹里面图片有就是打不开后面就报错了
Exception in thread Thread-2: Traceback (most recent call last): File "D:\env\Python27\lib\threading.py", line 801, in __bootstrap_inner self.run() File "D:\env\Python27\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "D:/91porn-spider-master/test.py", line 121, in spider video_url = strdecode(input=input, key=encode_key) File "D:/91porn-spider-master/test.py", line 34, in strdecode input = base64.b64decode(input).decode("utf-8") File "D:\env\Python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xeb in position 0: invalid continuation byte
应该不是utf8编码的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.