germey / cookiespool Goto Github PK
View Code? Open in Web Editor NEWCookiesPool Based on Redis
CookiesPool Based on Redis
clone到本地然后运行python3 run.py报错如下,不知道要怎么解决?
E:\python\Pycharm\CookiesPool>python3 run.py
Traceback (most recent call last):
File "run.py", line 8, in <module>
main()
File "run.py", line 5, in main
s.run()
File "E:\python\Pycharm\CookiesPool\cookiespool\scheduler.py", line 46, in run
generate_process.start()
File "C:\Python34\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Python34\lib\multiprocessing\context.py", line 212, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Python34\lib\multiprocessing\context.py", line 313, in _Popen
return Popen(process_obj)
File "C:\Python34\lib\multiprocessing\popen_spawn_win32.py", line 66, in __init__
reduction.dump(process_obj, to_child)
File "C:\Python34\lib\multiprocessing\reduction.py", line 59, in dump
ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function Scheduler.generate_cookie at 0x02A03DF8>: attribute lookup generate_co
okie on cookiespool.scheduler failed
E:\python\Pycharm\CookiesPool>Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python34\lib\multiprocessing\spawn.py", line 106, in spawn_main
exitcode = _main(fd)
File "C:\Python34\lib\multiprocessing\spawn.py", line 116, in _main
self = pickle.load(from_parent)
EOFError: Ran out of input
你好,我看到您的cookies池的教程
但是运行run.py时却报错了
错误是:('Error 10061 connecting to :6379. 由于目标计算机积极拒绝,无法连接。.',)
()
希望您能告诉我是哪里出了问题
再次感谢您的python教程
db里有个get方法取出cookies。可以对照着set方法使用json.loads。结果和decode方法有时候略有不同。
def get(self, key): try: return json.loads(self._db.get(self._key(key))) except: return None
博主您好,我看你的教程使用该cookiesPool代理池时浏览器的http://127.0.0.1:5000/weibo/random
无法获取random cookies 网页显示的错误是
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
在api.py中的if name =='main'中按照stackoverflow
https://stackoverflow.com/questions/10219486/flask-post-request-is-causing-server-to-crash
加入app.debug=True 也无法调式获得错误 ,更换不同浏览器也出现同样的错误
我是新手,请问在importer中输入的账号和密码组,如何获得
小弟在微博搜索验证码自动识别的一个小例子里借用了大哥的代码。可是response = requests.get(url, cookies=cookies_dict)获取验证码这里,是附带cookie获取的,云打码也识别了。点击提交的时候总是提示验证码不对。为什么获取的验证码和当前用户关联不上呢。希望大哥给点儿思路
这个错误是什么原因?
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.