'request.get works fine locally, but fails in google colab & cloud
I'm trying to run the following simple code:
import requests
url = r'https://fastlane.co.il/'
r = requests.get(url)
print("Status code:", r.status_code)
It runs good and fast on my local machine, but when i run it in Colab or in google cloud is simply timesout. How can i fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
