At once I want to note that I am a developer in another, different from the web sphere, therefore some basic aspects of web application programming may be unknown / incomprehensible to me. The web is for me a plowed field.

The task is:
There is an album in the VK group in which users of the group post photos and pictures. It is necessary in any way to select / display / give links at the worst to those photos that people have downloaded from a certain city (specified in the author's profile photo).

Question:
How and by what means can be implemented? Is it possible to stupidly execute the code in the address bar, using VK api and JS. As I see it, it is necessary to collect data on the Client, turn to the Server, then return the data from the Server to the Client and process. Or can it be something else?

Share who knows what, who has any thoughts on this task ... If anyone has any examples or something, I will be glad.

    1 answer 1

    Everything can and should be done on the client, if the application type is Standalone.

    I see the solution to the problem as follows:

    1. Get a list of albums and determine the ID for which to search for photos ( photos.getAlbums method)
    2. Retrieve and filter images, with the definition of the ID of the user who uploaded the image ( photos.getAll method)
    3. Get information about the location of the user by his ID (method users.get )

    As a final step - to process all the data arrays and form the final array containing the necessary information.

    You should pay attention to the number of requests that the application can do. It is necessary to introduce a delay in the execution of requests.

    How to create your application can be found on the pages of documentation . Well, write it all in javascript.