Hey,
I don't know how many of you know about the Client Form Module, it basically takes a ulrlib2.Request variable and extracts all the forms out of it so you can submit post data easier.
Something that I'm having problems with right now is being able to read the html data and parsing the forms.
PHP Code:
html = response.read()
forms = ParseResponse(response, backwards_compat=False, request_class=request)
print html
print forms
In this, html would equal the proper html value on the page; and forms would equal []
PHP Code:
forms = ParseResponse(response, backwards_compat=False, request_class=request)
html = response.read()
print html
print forms
In this, html would equal None; and forms would equal [<ClientForm.HTMLForm instance at 0x00000000033203C8>] which is what it should equal.
So what i need to do is have the same urllib2.request object available for 2 different uses. Reading and Parsing.
Thanks
~Cody Woolaver
Bookmarks