A
A
axblue2017-01-19 05:56:46
In contact with
axblue, 2017-01-19 05:56:46

How to write a parser for new VK entries?

Hello. Tell me where to dig. Do I need to write a parser that will work when a new post is added to the public? I understand through the api? And how do I parse new posts? Send requests by timer? Will there be any limit on requests?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danil Sysoev, 2017-01-19
@YoungOldMan

I would first get into the API. If I didn't find anything, then curl is a one-stop solution.
Look, here

A
aleksey_komyakov, 2017-01-19
@aleksey_komyakov

Parse through the VK API, everything is very convenient, you immediately get an array of data.
For new posts, two options:
1) Write to the database / txt id of sparsed posts
2) Time shift.
From experience, it is better and more convenient to write the result directly to the database, and then it is more convenient to apply this data, and it is more convenient to track duplicates.

I
imdeveloper, 2017-01-19
@link_web

I have such a notification. I wrote for my group that if a new entry appears on the wall of my community, then everything immediately comes to my email. Works via cron. I can give you the code, it will work for everyone

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question