浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

pjscrape: A web-scraping framework written in Javascript, using PhantomJS and jQuery

Overview pjscrape is a framework for anyone who's ever wanted a command-line tool for web scraping using Javascript and jQuery. Built to run with PhantomJS, it allows you to scrape pages in a fully rendered, Javascript-enabled context from the command line, no browser required. Features Client-side, Javascript-based scraping environment with full access to jQuery functions Easy, flexible syntax for setting up one or more scrapers Recursive/crawl scraping Delay scrape until a "ready" condition occurs Load your own scripts on the page before scraping Modular architecture for logging and writing/formatting scraped items Client-side utilities for common tasks Growing set of unit tests Download pjscrape-v0.1.4.zip pjscrape-v0.1.4.tar.gz Fork on github Dependencies PhantomJS v.1.3 License MIT License Documentation Javascript API Documentation In its most concise syntax, pjscrape makes scraping a webpage as easy as this:
posted on 2012-04-01 12:02  lexus  阅读(283)  评论(0编辑  收藏  举报