프로젝트
GitHub에서 보기
dharmafly/noodle
소개
JSONP 또는 POST를 사용해 웹 문서를 도메인 간에 스크래핑할 수 있는 Node.js 서버 및 모듈입니다.
데이터 및 분석What you can do
- Cross domain document querying (html, json, xml, atom, rss feeds)
- Server supports querying via JSONP and JSON POST
- Multiple queries per request
- Access to queried server headers
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalnoodle
noodle is a Node.js server and module for querying and scraping data from web documents. It features:
{
"url": "https://github.com/explore",
"selector": "ol.ranked-repositories h3 a",
"extract": "href"
}
Features
- Cross domain document querying (html, json, xml, atom, rss feeds)
- Server supports querying via JSONP and JSON POST
- Multiple queries per request
- Access to queried server headers
- Allows for POSTing to web documents
- In memory caching for query results and web documents
Server quick start
Setup
$ npm install noodlejs
or
$ git clone [email protected]:dharmafly/noodle.git
$ cd noodle
$ npm install
Start the server by running the binary
$ bin/noodle-server
Noodle node server started
├ process title node-noodle
├ process pid 4739
└ server port 8888
You may specify a port number as an argument
$ bin/noodle-server 9090
Noodle node server started
├ process title node-noodle
├ process pid 4739
└ server port 9090
Noodle as a node module
If you are interested in the node module just run npm install noodlejs,
require it and check out the noodle api
var noodle = require('noodlejs');
noodle.query({
url: 'https://github.com/explore',
selector: 'ol.ranked-repositories h3 a',
extract: 'href'
})
.then(function (results) {
console.log(results);
});
Tests
The noodle tests create a temporary server on port 8889 which the automated
tests tell noodle to query against.
To run tests you can use the provided binary from the noodle package root directory:
$ cd noodle
$ bin/tests
Contribute
Contributors and suggestions welcomed.
관련 프로젝트 살펴보기
불러오는 중…