PyQuery is able to load html document from urls:

>>> pq('')

By default it use python’s urllib.

If requests is installed then it will use it. This allow you to use most of requests parameters:

>>> pq('', headers={'user-agent': 'pyquery'})

>>> pq('', {'q': 'foo'}, method='post', verify=True)

Previous topic

pyquery – PyQuery complete API

Next topic

pyquery.ajax – PyQuery AJAX extension

This Page