How to compare the names and prices of goods, using python?

Good day, I decided to create a tool for comparing prices with 2 sites, each site supports the API, but I don't know how to compare json format. Can you please push in the right direction.
March 25th 20 at 13:47
1 answer
March 25th 20 at 13:49
import requests

r = requests.get('')
data1 = r.json()

r = requests.get('')
data2 = r.json()

if data1['price'] == data2['price']:
 print('equal Prices')

Of course, the keys depend on the structure of the API response sites.
Thank you, and wish that he saw the item name and price and then compare - Misty_Kris commented on March 25th 20 at 13:52
@Misty_Kris, make him see - Maddison.Kemm commented on March 25th 20 at 13:55
@Maddison.Kemm, if data1['price'] == data2['price']:
Is the price you have to insert znaczenia from here b28e6f6b9ea0.png - Misty_Kris commented on March 25th 20 at 13:58
@Misty_Kris, it's the basics... If the list has one element, then data[0]['price'], if can be more, then the desired cycle. - nelle commented on March 25th 20 at 14:01

Find more questions by tags Python