gistlib
main.pyimport requests url = 'https://www.example.com' response = requests.get(url) if response.status_code == 200: print(f"Number of hits traffic: {response.headers.get('X-RateLimit-Limit')}") else: print("Error fetching the URL") 235 chars10 lines
import requests url = 'https://www.example.com' response = requests.get(url) if response.status_code == 200: print(f"Number of hits traffic: {response.headers.get('X-RateLimit-Limit')}") else: print("Error fetching the URL")
gistlibby LogSnag