Comments (5)
Hey alkk. Please check resent revision from repo! It should work fine now.
from grab.
Hello.
dump_cookies warning gone, but problem persists:
>>> g=Grab(cookiefile='/tmp/jar')
>>> g.go('http://google.com')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "grab/base.py", line 381, in go
return self.request(url=url, **kwargs)
File "grab/base.py", line 449, in request
self.prepare_request(**kwargs)
File "grab/base.py", line 409, in prepare_request
self.transport.process_config(self)
File "grab/transport/curl.py", line 306, in process_config
self.process_cookie_options(grab, request_url)
File "grab/transport/curl.py", line 384, in process_cookie_options
self.curl.setopt(pycurl.COOKIELIST, b'Set-Cookie: ' + encoded + tail)
TypeError: invalid arguments to setopt
>>> import grab
>>> grab.version_info
(0, 4, 13)
Tested with revision 54cdb98
from grab.
I can't reproduce the bug. I do the same: setup cookifile, go to google home page, then go one more time. Nothing bad happens. Also, there is a similar test that also passes: https://github.com/lorien/grab/blob/master/test/case/grab_cookies.py#L104
from grab.
PycURL upgrade solved this issue (from 7.19.0 to latest 7.19.3.1), so this problem is unrelated to grab itself. By the way, test you mentioned (test_cookiefile) — it worked with both versions.
Thank you for great product and support.
from grab.
Have the same problem, can't find latest PycURL 7.19.3.1 build for Windows X64.
from grab.
Related Issues (20)
- Remove multicurl transport HOT 1
- empty request headers and body in *.log files when using log_dir option
- spider: impossible to setup grab transport HOT 2
- Can i use grab with async? HOT 1
- Segmentation fault 11 HOT 2
- import error in windows HOT 2
- Typo in documentation HOT 1
- Support ubuntu 19.04 / python3.7 and python3.8 HOT 3
- How to filter duplicate urls HOT 2
- Deprecation warning for defusedxml.lxml HOT 1
- Fix simple typo: shuld -> should
- In Windows XP HOT 9
- Не устанавливается в Линукс HOT 7
- похоже метод в Thread isAlive() был переименован в is_alive() в Python 3.9.0 HOT 2
- On the github page the link to http://grablib.org/ seems broken. HOT 1
- Why not have any new releases on PyPi ? HOT 4
- Failed pycurl/resolve/cookies test
- Fix tests for python 3.10: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 2
- Wrong Thread method for Python 3.9.0+ HOT 1
- Fix grammar/spelling errors in README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grab.