Hi, great stuff!
I'd like to check the 1st status code in a redirect chain - with request you can do: df['code'] = df.url.apply(lambda url: requests.get(url, allow_redirects=False).status_code)
How can you do that in faster-than-request?
Thanks, Charly
response["status"]
Responses are just a vanilla simple dict. :)
dict
Hi, im new to programming, im tryying to use your faster_than_requests library but cannot get the status code of the requests made.
import faster_than_requests as requests
Exp: response = requests.post(url, "data", http_headers)
I know how to access the response status code with the requests library, but how is it done with yours?
Thanks Juan, although I can't seem to make it work.
Would you mind showing me the full Python syntax on a simple URL please?
Thanks!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, great stuff!
I'd like to check the 1st status code in a redirect chain - with request you can do:
df['code'] = df.url.apply(lambda url: requests.get(url, allow_redirects=False).status_code)
How can you do that in faster-than-request?
Thanks,
Charly
Responses are just a vanilla simple
dict
.:)
Hi, im new to programming, im tryying to use your faster_than_requests library but cannot get the status code of the requests made.
import faster_than_requests as requests
Exp: response = requests.post(url, "data", http_headers)
I know how to access the response status code with the requests library, but how is it done with yours?
Thanks Juan, although I can't seem to make it work.
Would you mind showing me the full Python syntax on a simple URL please?
Thanks!