I am trying to webscrape a value, what is always change on a website, and i want to get the actual value.
I tried this:
my_url = requests.get('https://www.telekom.hu/shop/categoryresults/https://www.telekom.hu/shop/categoryresults/?N=10994&contractType=list_price&instock_products=1&Ns=sku.sortingPrice%7C0%7C%7Cproduct.displayName%7C0&No=0&Nrpp=9&paymentType=FULL')
data = my_url.text
parsed = json.loads(data)
my_number = parsed["totalNumRecs"]
print my_number
But I get this error message:
"my_number = parsed["totalNumRecs"]
KeyError: 'totalNumRecs'"
What am I wrong? Why i cant get back this number that is inside totalNumRecs?