Interactive CLI for monitoring procurement scrapers across multiple government portals
npm install conscrapurs
Interactive CLI for monitoring procurement scrapers across multiple government portals.
``bashInstall globally from npm
npm install -g conscrapurs
Quick Start
`bash
Launch interactive mode
conscrapursOr use direct commands
conscrapurs status # View all scrapers status
conscrapurs tail # Tail all logs live
`Commands
| Command | Description |
|---------|-------------|
|
conscrapurs | Launch interactive mode |
| conscrapurs status | Show status dashboard |
| conscrapurs tail [scraper] | Tail scraper logs |
| conscrapurs start | Start a scraper |
| conscrapurs stop | Stop a scraper |
| conscrapurs output | View output summary |$3
`bash
conscrapurs start eperolehan # Start with defaults
conscrapurs start zakupsk --details # Fetch tender details
conscrapurs start zakupsk --pages 10 # Limit to 10 pages
`Supported Scrapers
| ID | Portal | Country | Source |
|----|--------|---------|--------|
|
zakupsk | Zakupsk | š°šæ Kazakhstan | zakup.sk.kz |
| eperolehan | ePerolehan | š²š¾ Malaysia | eperolehan.gov.my |
| smartgep | SmartGEP | š²š¾ Malaysia | smartgep.gov.my |Configuration
Configure via environment variables:
`bash
export CONSCRAPURS_HOST=your-vps-ip
export CONSCRAPURS_PORT=22
export CONSCRAPURS_USER=root
`Default configuration:
- Host:
45.159.230.42
- Port: 1511
- User: root
- Base Dir: /opt/scrapers-standalone/Requirements
- Node.js 16+
- SSH access to VPS with key-based authentication
- Scrapers deployed at configured base directory
Interactive Mode
Running
conscrapurs without arguments launches an interactive menu:`
___
/ __\___ _ __ ___ ___ _ __ __ _ _ __ _ _ _ __ ___
/ / / _ \| '_ \/ __|/ __| '__/ _ | '_ \| | | | '__/ __|? What would you like to do?
⯠š View All Scrapers Status
š Tail All Logs (Live)
š Monitor Specific Scraper
š Start a Scraper
š Stop a Scraper
š View Output Data
āļø Settings
ā Exit
```
MIT Ā© ConsurvBL