News for hackers. Stuff that matters.
Re:Pyquery 0.2 : jQuery for Python by thomasmallen on Friday December 05, 2008 @05:46PM (#387626)
The whole point of jQuery is to serve as a substitute for the DOM, allowing scripts to efficiently interact with page elements. If you're running this via a Python script, you already control each and every bit of your page code. What's the point? I can only see this being useful in Python for screen scraping.
Re:Pyquery 0.2 : jQuery for Python by joseakle on Friday December 05, 2008 @06:41PM (#387664)
Scraping with BeautifulSoup works pretty well, but i've had a lot of problems with nested elements with no id since Xpath is not available on BeautifulSoup. Perhaps this would make it a little easier. I'll report back after trying it.
Re:Pyquery 0.2 : jQuery for Python by nevare on Saturday December 06, 2008 @08:28AM (#388080)
For the time being it doesn't use the BeautifulSoup parser so it may not work on very bad html, but I'll add an option an option to use it.
Re:Pyquery 0.2 : jQuery for Python by nevare on Saturday December 06, 2008 @08:30AM (#388082)
It could be used to skin an application ala deliverance. Or as a templating language: you would only write html and then put stuff into it with python and pyquery (but I think the jquery API may not be good enough for that).