For the past couple of years, I've always done any web scraping with trusty python + beautiful soup or elementtree. I've recently started doing it with Clojure + Enlive (mostly as an excuse to use clojure for less academic excercises) but I really like it. From that perspective, Upton looks pretty cool, especially the debug mode.
Have you taken a look at Scrapy ( http://scrapy.org/ )? My evolution has been from Perl to Python and I recently did a project with Scrapy that left me pretty happy.
Upton: A Web Scraping Framework
41–50 of 65 posts
Re: Upton: A Web Scraping Framework
#42Re: Upton: A Web Scraping Framework
#43I use YQL to do web scraping. It lets me do something like this: `select * from data.html.cssselect where url="www.yahoo.com" and css="#news a"` Could you elaborate on the benefits of using Upton instead of this?
AFAICT, YQL can only handle scraping individual pages that way. Upton can scrape a whole set of pages. If you have a page that lists the pages you're interested in; suppose you're interested in HN commenters on front page posts, you could specify the front page URL and a selector for links to comment pages, and Upton would automatically scrape those pages and return them to you. Upton could even write the commenter n…
Re: Upton: A Web Scraping Framework
#44Earlier quoted context omitted.
You don't even need phantomjs, really. You can use python + webkitgtk+ through the gobject bindings. The problem with phantomjs is that it's using an old version of webkit from an old version of qtwebkit from qt 4.8, whenever that was released. By comparison, webkitgtk+ can be compiled from upstream webkit whenever you please. If you insist on controlling webkit through javascript, you can use gnome-seedjs. But this…
Do you have any other resources about using webkitgtk with python for this sort of purpose?
Re: Upton: A Web Scraping Framework
#45Re: Upton: A Web Scraping Framework
#46Cool library, Jeremy...another Ruby scraping framework you might want to check out and improve upon is Artsy's Spidey: https://github.com/joeyAghion/spidey Has a similar approach but also leaves storage (and caching) up to the end-user.
Re: Upton: A Web Scraping Framework
#47Earlier quoted context omitted.
Have you taken a look at Scrapy ( http://scrapy.org/ )? My evolution has been from Perl to Python and I recently did a project with Scrapy that left me pretty happy.
Scrapy is really awesome. It's a soup to nuts queuing, fetching and extraction workflow tool and if I had to start a larger than trivial project (like an rss reader or shopping aggregation site) I would base my spider toolchain on it.
Re: Upton: A Web Scraping Framework
#48Re: Upton: A Web Scraping Framework
#49PHP SimpleDOM Class makes scraping just like working with jQuery on the backend. http://simplehtmldom.sourceforge.net/
I would recommend querypath. Very small footprint and takes a fraction of the cpu time.
Re: Upton: A Web Scraping Framework
#50PHP SimpleDOM Class makes scraping just like working with jQuery on the backend. http://simplehtmldom.sourceforge.net/