Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question