Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use timeout in the requests + try to use async instead of blocking requests. #2

Open
ranjan-stha opened this issue May 27, 2024 · 0 comments

Comments

@ranjan-stha
Copy link

I think it is necessary to use the timeout param while sending the requests.

doc = requests.get(url).content

Also, if possible, use the asynchronous call using httpx rather than requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant