Web service¶
When launched as a web service, several parameters are available:
q– search querytype– same as--typeCLI flag-
field– same as--fieldCLI flag.- Note that unsafe field types
codeandexternalare disabled in web service by default. You may re-allow them inwebservice_allow_unsafe_fieldsconfig option - full syntax of CLI flag is supported
FIELD[[CUSTOM]],[COLUMN],[SOURCE_TYPE],[CUSTOM],[CUSTOM]
Ex:
reg_s,l,Lperforms regular substitution of 'l' by 'L' - Note that unsafe field types
-
clear=web– clears web scrapping module cache
Quick deployment may be realized by a single command:
- Note that convey must be installed via
pip - Note that LACNIC may freeze for 300 s, hence the timeout recommendation.
- Note that you may find your convey installation path by launching
pip3 show convey - If you received or generated key and certificate, you may turn on HTTPS in
uwsgi.iniaccesible by:convey --config uwsgi - Internally, flag
--serverlauncheswsgi.pywith a UWSGI session.
Access: curl http://localhost:26683/?q=example.com
{"ip": "93.184.216.34", "prefix": "93.184.216.0-93.184.216.255", "asn": "", "abusemail": "abuse@verizondigitalmedia.com", "country": "unknown", "netname": "edgecast-netblk-03", "csirt-contact": "-", "incident-contact": "unknown", "status": 200, "text": "DNSThe free app that makes your (much longer text...)"}
Access: curl http://localhost:26683/?q=example.com&field=ip
Access: curl http://localhost:26683?q=hello&type=country&field=reg_s,l,L