module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Feb 19, 2023
License: MIT
Opens a new window with license information.
README
¶
Fitter (development)
Fitter - new way for collect information from the API's/Websites
- Server - parsing response from some API's or http request
- Browser - emulate real browser using chromium + docker + cypress and get DOM information
- JSON - parsing JSON to get specific information
- XML - parsing xml tree to get specific information
- HTML - parsing dom tree to get specific information
- XPath - parsing dom tree to get specific information but by xpath
Environment variables
- FITTER_HTTP_WORKER - int[1000] - default concurrent HTTP workers
How to run locally
Arguments
- --path - string[config.yaml] - path for the configuration of the Fitter
go run cmd/fitter/main.go --path=./examples/config_api.json
go run cmd/fitter/main.go --path=./examples/config_web.json
How to use Fitter_CLI
Arguments
- --path - string[config.yaml] - path for the configuration of the Fitter_CLI
- --copy - bool[false] - copy information into clipboard
- --pretty - bool[true] - make readable result(also affect on copy)
- --verbose - bool[false] - enable logging
go run cmd/cli/main.go --path=./examples/cli/config_cli.json --copy=true
Examples:
- HackerNews + Quotes + Guardian News - using API + HTML + XPath parsing
- Guardian News + Quotes - using HTML parsing + browser emulation
Limits
{
"limits": {
"host_request_limiter": {
"hacker-news.firebaseio.com": 5 // 5 concurrent request to how
},
"chromium_instance": 3 // Max allow 3 parralale chromium instance
},
"item": {
...
}
}
Example here
Roadmap
- Browser - emulation - 1.0
- Notification: Webhook - 1.0
- Trigger: Webhook/Queue - 1.0
Click to show internal directories.
Click to hide internal directories.