A spambot for vk.com that publishes your image in a first comment to every new post of a specified group or public page. You can upgrade it to send comments to a list of groups.
Before using this script carefully read VK's terms and conditions. It is not recommended to use it for spam or breaking the law.
You need to create an app at VK's developer section. Open file getstarted.php
in your browser to get the instructions. Also, if you want to bypass captcha you will need an Antigate API key.
Edit config.php
and put there your VK access token, access secret and Antigate API key.
Include pervonah/pervonah.php
require_once("pervonah/pervonah.php");
and call the main function like this:
pervonah(GROUP_ID,VK_PHOTO_ID);
It will scan a group page for new entries and post your image in comments to each new entry.
Normally, you want to use it in a cycle:
// Repeat 60 times
for($i=0;$i<60;$i++){
pervonah(98331381,"photo-85297897_377457569");
usleep(1000000); // Wait for 1 second
}
Change the delay and the number of repeats to your preferences. Feel free to run your file by cron.