I'm making a cryptocurrency watch app. I using for this requests but i always taking same requests.
coin_list = ["bitcoin", "ethereum", "bittorrent", "xrp", "dogecoin"]
while(True):
for coin in coin_list:
print(BeautifulSoup.get_text(BeautifulSoup(requests.get('https://www.coindesk.com/price/'+coin).content, 'html.parser').find('div', {'class': 'price-large'}))[1:])
this script returning it to me:
36,331.66
2,219.07
0.002826
0.716486
0.266623
36,331.66
2,219.07
0.002826
0.716486
0.266623
36,331.66
2,219.07
0.002826
0.716486
0.266623
36,331.66
2,219.07
0.002826
0.716486
0.266623
36,331.66
2,219.07
0.002826
0.716486
0.266623
36,331.66
2,219.07
0.002826
this is not about cache. i was try it with headers.