Answer the question
In order to leave comments, you need to log in
How to get price from get request?
Hi, how can I get the price on request
"https://365sms.ru/stubs/handler_api.php?api_key=api_token&action=getPrices&service=vk&country=0"
"{"0":{"vk":{"cost":13.5,"count":34370}}}"
Answer the question
In order to leave comments, you need to log in
https://docs.python.org/3/library/json.html
https://docs.python.org/3/tutorial/datastructures....
>>> import json
>>> print( json.loads('{"0":{"vk":{"cost":13.5,"count":34370}}}')["0"]["vk"]["cost"] )
13.5
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question