Gocpc is a cli tool that allow you to request in a parallelized way the spain bankruptcy advertising portal. Moreover it can handle large csv files as the input reading it line to line without collapse the computer memory so it works on low memory computers.
You can install either from source or binaries directly
make build.windows
make build.linux
NOTE: Open CMD as administrator for moving the file to system32 folder
curl -LO https://github.com/alvarogf97/gocpc/releases/download/v0.0.1/gocpc.exe
move gocpc.exe \Windows\system32\gocpc.exe
curl https://github.com/alvarogf97/gocpc/releases/download/v0.0.1/gocpc.exe --output gocpc
mv gocpc /usr/bin/gocpc
As a cli tool you can always use de --help
flag to make sure what commands do
Process command takes a csv as the input and process every row document by searching it in the spain bankruptcy advertising portal
> gocpc process -h
Process csv file and request CPC for every document record found in it
Usage:
gocpc process [flags]
Flags:
-h, --help help for process
-i, --input string input file (default "data.csv")
-l, --log string errors log file (default "errors.log")
-o, --output string output file (default "matches.csv")
-r, --request-retries int times failed request will be retried (default 1)
-s, --starts-from int starts from (default 1)
-t, --threads int threads to use (default 1)