V
V
Vitalik2015-10-23 00:03:14
Python
Vitalik, 2015-10-23 00:03:14

How to get open data via api using python?

Can you please show me a code example of how using python (requests library) I can get public data on the respective sites? For example, the methods are described here: data.gov.spb.ru/developers , but I do not understand exactly how it will look in the script.
For example, how to authorize using a token and get the required set?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-10-23
@sonic_youth

"The token is transferred to the HTTP Header in the format "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"" - written in Russian in white.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question