An open API service indexing awesome lists of open source software.

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

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!