What's the correct way to use 'import requests as' in Python? or Why do some scripts use 'import requ

18 Replies, 1740 Views

Wow, thanks for all the replies! Didn’t expect so much insight. I tried *import requests as req* in a small script, and yeah, it does feel cleaner when you’re calling it a bunch.

Follow-up Q: Anyone have strong feelings on *req* vs *rq*? Or is that just splitting hairs?

Also, gonna check out that Real Python link—thanks for the tip!

Messages In This Thread



Users browsing this thread: 1 Guest(s)