Will be
added
here.
import requests #install korte hoiche
import json #install korte hoynai
countries = requests.get("<https://api.sampleapis.com/countries/countries>")
decoded_coutries = json.loads(countries.content)
for country in decoded_coutries:
print(country['name']+'-'+country['capital']+'-'+country['phone'])
-----------------------------------------
import requests #install korte hoiche
import json #install korte hoynai
banks = requests.get("<https://api.sampleapis.com/fakebank/accounts>")
dec_banks = json.loads(banks.content)
for bank in dec_banks:
print(bank['transactionDate']+'-'+bank['description']+'-'+str(bank['debit'])+'-'+str(bank['credit']))