print("Username: ")
x = input()

print(x)

print("Password: ")
y = input()

print(y)
Username: 
hi
Password: 
no u
import requests

url = "https://open-weather13.p.rapidapi.com/city/San%20Diego"

headers = {
	"X-RapidAPI-Key": "hi",
	"X-RapidAPI-Host": "hi"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

# result = response.json().get('weather')
# for re in result:  
#     if re["main"] == "Clouds":  
#         for key, value in re.items(): 
#             print(key, value)
# result = response.json().get('weather')
# for key, value in result.items(): 
#     print(key, ":", value)
# result = response.json().get('weather')
# for re in result:
#     re = ["weather"]
#     for key, value in re.items():
#             print(key, value)

print("Temperature in San Diego:")
result2 = response.json().get('main')
for key, value in result2.items(): 
    print(key, ":", value)

# result = response.json().get('cities')
# for re in result:  
#     if re["city_name"] == "San Diego":  
#         for key, value in re.items(): 
#             print(key, value)
{"coord":{"lon":-117.1573,"lat":32.7153},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":74.88,"feels_like":75.49,"temp_min":67.75,"temp_max":84.33,"pressure":1015,"humidity":73},"visibility":10000,"wind":{"speed":13,"deg":300,"gust":17},"clouds":{"all":0},"dt":1666040009,"sys":{"type":2,"id":2005032,"country":"US","sunrise":1666014842,"sunset":1666055611},"timezone":-25200,"id":5391811,"name":"San Diego","cod":200}
Temperature in San Diego:
temp : 74.88
feels_like : 75.49
temp_min : 67.75
temp_max : 84.33
pressure : 1015
humidity : 73
import datetime
date = 1
dateCalc = datetime.datetime.now()
# print(dateCalc.strftime("%A"))
if dateCalc.strftime("%A") == "Monday":
	date = "Mon"
if dateCalc.strftime("%A") == "Tuesday":
	date = "Tue"
if dateCalc.strftime("%A") == "Wednesday":
	date = "Wed"
if dateCalc.strftime("%A") == "Thursday":
	date = "Thu"
if dateCalc.strftime("%A") == "Friday":
	date = "Fri"
if dateCalc.strftime("%A") == "Saturday":
	date = "Sat"
if dateCalc.strftime("%A") == "Sunday":
	date = "Sun"

import requests

url = "https://yahoo-weather5.p.rapidapi.com/weather"

location = input()

querystring = {"location": str(location),"format":"json","u":"f"}

headers = {
	"X-RapidAPI-Key": "hi",
	"X-RapidAPI-Host": "hi"
}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)

print("Weather is in ◦F")
print("Forcast in", str(location), ":")
result = response.json().get('forecasts')
for re in result:
	if re["day"] == date:
		# if re[""] change this later
		for key, value in re.items(): 
        		print(key,":", value)
					
			
		# print(re["day"], ":" " Low:", re["low"], "High:", re["high"], "Clearness:", re["text"])
		# for key, value in re.items(): 
		# 	print(key, ":", value)
{"location":{"city":"San Diego","region":" CA","woeid":2487889,"country":"United States","lat":32.831699,"long":-117.122002,"timezone_id":"America/Los_Angeles"},"current_observation":{"wind":{"chill":87,"direction":90,"speed":12},"atmosphere":{"humidity":20,"visibility":10,"pressure":29.89,"rising":0},"astronomy":{"sunrise":"6:56 am","sunset":"6:11 pm"},"condition":{"code":32,"text":"Sunny","temperature":90},"pubDate":1666113900},"forecasts":[{"day":"Tue","date":1666062000,"low":64,"high":92,"text":"Sunny","code":32},{"day":"Wed","date":1666148400,"low":65,"high":91,"text":"Mostly Sunny","code":34},{"day":"Thu","date":1666234800,"low":64,"high":85,"text":"Partly Cloudy","code":30},{"day":"Fri","date":1666321200,"low":62,"high":79,"text":"Partly Cloudy","code":30},{"day":"Sat","date":1666407600,"low":58,"high":70,"text":"Cloudy","code":26},{"day":"Sun","date":1666494000,"low":56,"high":68,"text":"Partly Cloudy","code":30},{"day":"Mon","date":1666580400,"low":57,"high":73,"text":"Sunny","code":32},{"day":"Tue","date":1666666800,"low":53,"high":76,"text":"Sunny","code":32},{"day":"Wed","date":1666753200,"low":54,"high":78,"text":"Sunny","code":32},{"day":"Thu","date":1666839600,"low":57,"high":79,"text":"Mostly Cloudy","code":28},{"day":"Fri","date":1666926000,"low":54,"high":75,"text":"Mostly Sunny","code":34}]}
Weather is in ◦F
Forcast in san diego :
day : Tue
date : 1666062000
low : 64
high : 92
text : Sunny
code : 32
day : Tue
date : 1666666800
low : 53
high : 76
text : Sunny
code : 32
import datetime

date2 = datetime.datetime.now()
print(date2.strftime("%A"))
print(date2)

date = 1
dateCalc = datetime.datetime.now()
print(dateCalc.strftime("%A"))
if dateCalc.strftime("%A") == "Tuesday":
	date = 2

print(date)
Tuesday
2022-10-18 13:51:14.091172
Tuesday
2