magnusmanske / petscan_rs

The repo for the PetScan tool
https://petscan.wmflabs.org/
GNU General Public License v3.0
43 stars 10 forks source link

Wrapper (or sample) to run queries from the command line without an http server #146

Closed maximmasiutin closed 5 months ago

maximmasiutin commented 6 months ago

Could you please consider adding a wrapper (or a sample) to run queries from the command line without an http server.

For example, I run ./petscan.sh --query="language=en&project=wikipedia&categories=Cytochrome+P450&negcats=Enzymes&regexp_filter=CYP.*" and receive the results to stdout?

magnusmanske commented 5 months ago

You can now run the binary with a parameter containing the URL query part. It will default to JSON output unless you specify another, non-HTML one.