0.0.4 • Published 12 years ago
bogeyman v0.0.4
Bogeyman.js
Bogeyman is application build upon awesome PhantomJS and it provides REST API so you can use PhantomJS headless crawling of heavy javascript webspages within any programming language or curl.
Clients:
Installation
You can install it globally
npm install -g bogeymanOr locally
npm install bogeymanUsage
Run server
bogeyman 31313 # if you installed it via npm install
node ./bin/bogeyman 31313 # if you cloned a repoMake a request
curl -XPOST "localhost:31313" --data '
{
"url": "http://yuna.sk",
"method": "GET",
"data": {},
"params": {
"proxy": "127.0.0.1:9999",
"proxy_type": "socks5"
}
}And get result
{
"response": {
"body": "<html>...</html>",
"code": 200
},
"status": "success"
} Cookies
curl -XPOST "localhost:31313" --data '
{
"url": "http://yuna.sk",
"method": "GET",
"data": {},
"cookies": [
{
"name": "test",
"value": "test",
"domain": "yuna.sk",
"path": "/path",
"httponly": false,
"secure": false,
"expires": 1405164630
}
]
}
'Advanced
TBD
License
This library is distributed under the Beerware license.