T
T
takoyklasnii2019-09-30 16:04:11
API
takoyklasnii, 2019-09-30 16:04:11

How to organize a data parser with vk api?

I want to steal a video from VK. In order to use the api, I need a user key token. The question is. Let's say if later I need to make a parser on a separate VPS for personal needs, I will constantly need to get a new token, because the old one is dying. What are the solutions?
Will it work like this:
1) received a token, wrote it to the database and its lifetime
2) when requesting via api, I check its lifetime
a) if it has expired, I get a new one and write to the database
b) if not, I continue with the old
one ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Makssof, 2019-09-30
@makssof

So there is an offline scope
5d91ffb244b77395791736.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question