pyquery

A jquery-like library
Download

pyquery Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Olivier Lauzanne
  • Publisher web site:
  • http://libreamoi.com

pyquery Tags


pyquery Description

A jquery-like library pyquery is a jquery-like Python library for manipulating HTML and XML documents.pyquery allows you to make jquery queries on xml documents. The API is as much as possible the similar to jquery. PyQuery use lxml for fast xml and html manipulation.This is not (or at least not yet) a library to produce or interact with javascript code. I just liked the jquery API and I missed it in python so I told myself "Hey let's make jquery in python". This is the result.It can be used for many purposes, one idea that I might try in the future is to use it for templating with pure http templates that you modify using pyquery.You can use the PyQuery class to load an xml document from a string, from a file or from an url.>>> from pyquery import PyQuery>>> d = PyQuery(html="")>>> d = PyQuery(url='http://w3c.org/')>>> d = PyQuery(filename="test.html") Requirements: · Python


pyquery Related Software