Probably old news but my mind is always blown by all the stuff #curl can do. I had zero idea that curl has a —form argument that lets you simulate filling out a form, complete with a file upload. Let me automate a super annoying task for a friend with a dead simple bash script.
@matdevdug computers are awesome! It’s a great privilege to have a job where doing stuff like this is why I get paid.

@matdevdug its a brilliant piece of software isn't it.

I discovered the other day you can use a Digital Object Identifier (doi) with `curl` and get a BibTeX citation back...

```
curl --silent -LH "Accept: text/bibliography; style=bibtex" https://doi.org/10.1017/cts.2024.533
```

@bagder and contributors do an amazing job, thank you.

The epidemiology of errors in data capture, management, and analysis: A scoping review of retracted articles and retraction notices in clinical and translational research | Journal of Clinical and Translational Science | Cambridge Core

The epidemiology of errors in data capture, management, and analysis: A scoping review of retracted articles and retraction notices in clinical and translational research - Volume 8 Issue 1

Cambridge Core
what if python script instead
@matdevdug how did you find this out? For all the hate on AI (and i realize there are tons of downsides) it often helps me finding out stuff just like this

@allistaken Friend works at a bicycle shop and they use basically a big Excel worksheet to do all of their invoices and part management. Part of his job when he closes is to manually input a bunch of information from this into a web form for centralization of the information by the owner across his different shops.

I was using curl to figure out how I could authenticate to the endpoint, like what headers I needed to pass, when I made a typo on some argument. So I opened up the curl man pages and was scrolling down when I saw “form”. Then, once I figured out how to parse the excel to get what I wanted and what the fields were in the form, wrote a bash script to do the whole thing for him when he closes.

Pretty cool! Thanks for sharing :-)
curl is such a sleeper powerhouse, right? once you start playing with `--form`, `--data`, and `--json`, suddenly half the stuff you thought needed a whole app is just a tiny shell script instead