N
N
Nikita2022-03-18 22:47:26
Python
Nikita, 2022-03-18 22:47:26

Python. How to get the value when parsing?

A question. I make a POST request, the server sends me a response in the form:
{"token":"12345","token_id":"6","}

How to get the token and token_id values ​​​​from here so that you can display
your token: 12345
Your ID: 6
Tried to use lxml etree.fromstring() but it throws an error that element '<' was not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elvis, 2022-03-18
@razinns

https://stackoverflow.com/questions/38694800/how-t...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question