Open mtrenkmann opened 1 year ago
Consider also providing an example of how to decode the returned object when in batch mode. This worked for my purposes.
response = requests.post(....)
data = response.content.decode('utf-8')
datalist = json.loads(data)
@MarkAPitt Assuming you're using the Python requests library, you can simplify that to
datalist = requests.post(....).json()
The reworked NGRAMS Documentation (the GitHub Wiki is temporary) should include request examples for at least curl, JavaScript, TypeScript, Python, and NodeJS.
A tool to map curl commands to other languages is https://curlconverter.com. Thanks @MarkAPitt for pointing to it.