https://github.com/makevoid/jscrape
scrape the web with js and jquery
https://github.com/makevoid/jscrape
Last synced: 3 months ago
JSON representation
scrape the web with js and jquery
- Host: GitHub
- URL: https://github.com/makevoid/jscrape
- Owner: makevoid
- Created: 2011-06-17T15:52:36.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-06-19T04:55:25.000Z (over 14 years ago)
- Last Synced: 2024-12-22T05:31:54.242Z (about 1 year ago)
- Language: CoffeeScript
- Homepage: http://jscrape.makevoid.com
- Size: 93.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jScrape
### scrape the web with js and jquery
### see: [jscrape.it](http://jscrape.it)
### Basic example:
require jquery and jscrape:
fetch a page, extract some content and print it in a div:
$(function(){
var url = "http://jquery.com"
var jscrape = new $.jScrape()
jscrape.frame("#jsc_frame").get(url, function(page){
page.fetch("body") // use css selectors
})
})
there is no documentation but the code is very short, read only coffeescript file: [jscrape.coffee](https://github.com/makevoid/jscrape/blob/master/jscrape.coffee)
### jScrape server
Built with Ruby Goliath, find it here: [github.com/makevoid/jscrape-server](https://github.com/makevoid/jscrape-server)
- very simple
- handles redirect
Feel free to fork everything!