1. Olivier Lauzanne
  2. pyquery
  3. Issues
Issue #3 resolved

Add support for custom urlopen

created an issue

Hi, I want to use this program for an login site so I need a custom urlopen from ClientCookie.

Attached is the patch.


import ClientCookie

import pyquery

txdata = "username=username&password=password"

resp = ClientCookie.urlopen("http://www.example.com/login",txdata)

p = pyquery.Pyquery(url="http://www.example.com/restricted", urlopen=ClientCookie.urlopen)

Comments (2)

  1. Log in to comment