News for hackers. Stuff that matters.
Re:Pyquery 0.2 : jQuery for Python by epoweripi on Saturday December 06, 2008 @01:40AM (#387917)
Sounds a lot like ruby's hpricot.

Wish I saw this earler - I am already in the middle of a project (screen scraping of course) using hpricot.

Sounds weird, but the only reaason to pick ruby for me was hpricot and not RoR :)

Re:Pyquery 0.2 : jQuery for Python by draegtun on Saturday December 06, 2008 @03:38PM (#388320)
Yes its like Ruby's Hpricot and also Perl's pQuery. This jQuery way of accessing XML/HTML is certainly catchy!
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).
Re:Pyquery 0.2 : jQuery for Python by babyshake on Friday December 05, 2008 @03:27PM (#387485)
I like this, but have no clue how I would use it beside for some BeautifulSoup page manipulation....
Re:Pyquery 0.2 : jQuery for Python by tdavis on Friday December 05, 2008 @09:23PM (#387767)
For parsing XML responses? lxml is better than BeautifulSoup in terms of performance and memory usage.