Created
March 30, 2023 06:59
-
-
Save sangheonhan/7be45d9727a88f0461a6ca2148fdcd2d to your computer and use it in GitHub Desktop.
The code retrieves and prints a list of GitHub's IP addresses from the meta API endpoint.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
response = requests.get('https://api.github.com/meta') | |
data = response.json() | |
ip_addresses = data['hooks'] | |
print(ip_addresses) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment