Git Product home page Git Product logo

Comments (5)

lorien avatar lorien commented on May 22, 2024

Hey alkk. Please check resent revision from repo! It should work fine now.

from grab.

alkk avatar alkk commented on May 22, 2024

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.

lorien avatar lorien commented on May 22, 2024

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.

alkk avatar alkk commented on May 22, 2024

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.

rxtxup avatar rxtxup commented on May 22, 2024

Have the same problem, can't find latest PycURL 7.19.3.1 build for Windows X64.

from grab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.