A
A
Atlanta2018-10-28 21:30:22
JavaScript
Atlanta, 2018-10-28 21:30:22

How to autoload when parsing on native js?

I wrote a small script that returns me links to VK posts that have received more than a certain number of likes. But the problem is that I don't know how to parse all posts in a group this way? How to make the public wall loaded completely?
And the second problem is that now I'm running this script from the console, can I somehow connect it so that I don't have to open the page and browser for this?
I'm currently learning js and this is the reason why js parser) I know there are better languages ​​for this purpose.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex, 2018-10-28
@Atlanta_Boston

https://vk.com/dev/wall.get
returns a list of posts that can be filtered (Array.filter() ) by the number of likes. but even there there is a limit, a maximum of 100 posts at a time.
Alternatively, you can try headless browsers like phantom.js and similar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question