Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reneklacan/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.
https://github.com/reneklacan/bogeyman.js
Last synced: 25 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/reneklacan/bogeyman.js
- Owner: reneklacan
- License: other
- Created: 2014-06-28T18:21:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-02T21:19:52.000Z (over 10 years ago)
- Last Synced: 2024-10-01T09:49:58.854Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 160 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
* [Ruby client](https://github.com/reneklacan/bogeyman-ruby-client)## Installation
You can install it globally
```bash
npm install -g bogeyman
```Or locally
```bash
npm install bogeyman
```## Usage
Run server
```bash
bogeyman 31313 # if you installed it via npm install
node ./bin/bogeyman 31313 # if you cloned a repo
```Make a request
```bash
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
```bash
{
"response": {
"body": "...",
"code": 200
},
"status": "success"
}
```## Cookies
```bash
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.