
CLI tool to search and scrape geotagged photos from VK.com using the VK API, extracting owner names and photo metadata into an HTML report.
Search for photos by geo-tags on the social network vk.com
git clone https://github.com/yevgen2020/vk-geosearch.git
pip3 install requests
cd vk-geosearch
chmod +x search.py
To search for photos in VK, you need a service access key or a token. Create a Standalone application. Go to settings and set the status field to "Application is enabled and visible to everyone". Save the changes. Copy your service access key, open search.py in an editor and change the key to yours (you can use a token instead of the key).
The results are saved to a file named 'current timestamp'.html Photos are not downloaded to the local machine, but are pulled from the server when opening the html with the results. On the page, photos will be in the highest possible quality and will accordingly weigh a lot, keep this in mind when setting the time interval. Clicking on a photo opens the owner's page in a new tab. Only images from users' personal pages are parsed (including deleted and blocked ones), photos from groups are filtered out otherwise most of the search results would consist of nails, eyelashes, hair removals, etc.
Added the ability to enter an address (does not always work correctly because the service is free; if it does not work for any reason, register at locationiq.com, get a token, and insert your own in the 'TOKEN' field. Added support for selecting photo size. Also added parsing of the photo owner's last name and first name. Attention! If you have more than 50 photos in the results, DO NOT select this option, otherwise you will get banned due to API request rate limits.
When launched with the argument -p or --proxy, it will use a local proxy server 127.0.0.1:8080, you can change it to your own.