python版的jquery
时间:2010-07-15 来源:yuwgle
这是一个python版的jquery
不用羡慕ruby的Hpricot 啦,找到了一个类似的html解析和检索工具。
虽然还不是完全支持jquery的所有功能,但是也很不错啦。
不过没有下载地址,貌似没开发完……遗憾,继续寻找合适的库
下面是pyquery主页上的简介:
pyquery: a jquery-like library for python
pyquery allows you to make jquery queries on xml documents. The API is as much as possible the similar to jquery. pyquery uses 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. I can also be used for web scrapping or for theming applications with Deliverance.
The project is being actively developped on a mercurial repository on Bitbucket. I have the policy of giving push access to anyone who wants it and then to review what he does. So if you want to contribute just email me.
The Sphinx documentation is available on pyquery.org.
Contents
- pyquery: a jquery-like library for python
- Usage
- Attributes
- CSS
- Traversing
- Manipulating
- AJAX
- Making links absolute
- Using different parsers
- Testing
- More documentation
- TODO
- pyquery.pyquery – PyQuery complete API
- pyquery.ajax – PyQuery AJAX extension