Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests # Web scraping/API access module
- import pandas as pd # Module to store collected data
- # This request asks the link how to access the hourly weather forcast for the location of interest (Coordinates)
- URL = 'https://api.weather.gov/points/33.997,-118.4833' # Weather data access for geographic coordinates (Los Angeles)
- response = requests.get(URL) # Collects data from URL
- response.json() # This asks for json (JavaScript Object Notation) format of data from link
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement