简体   繁体   中英

Rails / Ruby - Real time screen scraping?

How is it possiable to create real time screen scraping?

Like this site: www.bog.nu

Here is some information about the site on english: http://casperfabricius.com/site/2010/11/11/launch-bog-nu/

I know about Mechanize. But I don´t see it should work with Cramp and Eventmachine.

I'm not sure what the question is--they'll crawl the websites they want to scrape, parse the HTML, and get the info they need.

I don't know how they've broken up the responsibilities of the app, but for example, see this example for one way you could grab info and stream it real-time. Here the info is going to an HTML5 page, but it could just as easily be stuffed in to a database and served up by a regular browser request rather than streamed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM