Advertisement
Guest User

Untitled

a guest
Aug 27th, 2024
1,683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. import requests  # Web scraping/API access module
  2. import pandas as pd  # Module to store collected data
  3.  
  4. # This request asks the link how to access the hourly weather forcast for the location of interest (Coordinates)
  5. URL = 'https://api.weather.gov/points/33.997,-118.4833'  # Weather data access for geographic coordinates (Los Angeles)
  6. response = requests.get(URL)  # Collects data from URL
  7. response.json()  # This asks for json (JavaScript Object Notation) format of data from link
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement