[b]"What's the best way to use curl in Python for web requests?"[/b] or [b]"How do I replace curl commands with Py

16 Replies, 846 Views

"Struggling with curl in Python—any tips or alternatives?"

hey folks,

trying to move my curl commands into python but hitting some walls. like, why’s it so much more verbose?

i’ve seen people use `subprocess` to just run curl in python, but that feels hacky.

also, heard about `pycurl`—anyone use it? is it worth the hassle over `requests` or `httpx`?

or should i just ditch curl python entirely and rewrite everything with `requests`?

kinda lost here, any quick tips?

thx!

---

*(word count: ~80)*

Messages In This Thread
[b]"What's the best way to use curl in Python for web requests?"[/b] or [b]"How do I replace curl commands with Py - by - 03-06-2024, 02:04 AM



Users browsing this thread: 1 Guest(s)