๐ฅ Coil Operating Point Data Scraper ๐ฅ
Get operating point data for coils from the coilcraft REST API.
- Adjust the
PartNumber
incoil.lua
- Run the script
- ???
- Profit
local part = 'SER2918H-153' -- for example
$ lua coil.lua
If you get a
error code: 1015 ... sleeping for 30s
message don't worry this error is caught and handled, after 30 seconds of
waiting the loop continues. This is due to rate limiting by coilcraft ๐,
which is also the reason we can't parallelize. After a handful requests we'd
get a 1015
and would need to wait anyway.
lua
5.4 and the following rocks:
lua-cjson
lua-curl
socket