As on software level, knowing the username and pass to get the content DIV to repost VK (or action on any other site)?

I want to understand the principle of operation VKBot and implement 2 simple functions in PHP or Java. I need to get the content from diva by ID and perform an action, namely to repost. All sanctioned, all logins and passwords consent to install scripts there. However not want to go beyond the web technologies, that is to put plugins on browsers, etc. Times vkbot.ru only works for details, so it's possible. However, I then tried to get content iframe another site and ran into cross-domain security policy, in the end did not reach out. Duck-how to implement it ?
September 19th 19 at 12:54
2 answers
September 19th 19 at 12:56
Solution
The correct way - using the API https://vk.com/dev/wall.repost
The most versatile - simulating user behavior using any of the following tools https://gist.github.com/evandrix/3694955
Thank you, give a small comment and your response. To use the API after registration of the application, any fees, etc.? That is, in the shortest possible time to do so ? Plus not to do daily posting ?

In HtmlUnit habrahabr.ru/sandbox/19174 found a gorgeous article. I think if you used Jquery is the good option. To simulate via PHP will not work as the action browser ?

AI how using HtmlUnit to login, find the item and enter into it .text() or .html(). Or there are methods to login ? I of course read the documentation, but suddenly you know - this will save a lot of time. - Shawna_Hegma commented on September 19th 19 at 12:59
: blackmail and request for assistance in a single message - it's very original *rofl* - Leola66 commented on September 19th 19 at 13:02
:It's not blackmail, it is the designation that your answer is correct and I was quite happy. However, I would like to teach him addition that would have a clear conscience to celebrate. Because of a sudden note, and then contact you will fail :D - Shawna_Hegma commented on September 19th 19 at 13:05
I don't know what you want to do (can spam on behalf of the visitors via VC) - read the rules of their API https://vk.com/dev/rules
But in order to begin to use this API you need 3 min + mobile phone linked to the account of the VC. - Leola66 commented on September 19th 19 at 13:08
: The task is simple, there is a group of like 20 people that do the once a day need a repost on the wall. Need to automate this process, as well as if someone deleted the post to report it in the mail. (I think to solve it using cron+php+HtmlUnit). Not then illegal, the user agrees has all the details. - Shawna_Hegma commented on September 19th 19 at 13:11
: the problem is solved for half an hour node.js + vk.api, but it is in the right column called "frilanser". Look in the direction of rights wall,offline and repost the method which I have pointed out above.
PS: it is decided on PHP as fast without HtmlUnit. - Leola66 commented on September 19th 19 at 13:14
: Thank you - Shawna_Hegma commented on September 19th 19 at 13:17
September 19th 19 at 12:58
vkbot works with the client.
If you such actions will commit to the server, in a very short time it was banned.

If you need to repost with the client, I would try to write a plugin for your browser.

And so, working vkbot is parsing + browser emulation.
Sure not an IPA? - Shawna_Hegma commented on September 19th 19 at 13:01
In the scale I need, and exactly 20 people a day - I doubt it... - Leola66 commented on September 19th 19 at 13:04
: as far as I remember, the rules of the VC prohibited many actions that are carried out with the help of vkbot. So I guess there is still emulation of the browser. - Shawna_Hegma commented on September 19th 19 at 13:07
: if you are very sure it is not banned, then a bunch of phantomjs + php + js knowledge. - Leola66 commented on September 19th 19 at 13:10

Find more questions by tags JavaScriptProgrammingWeb DevelopmentjQueryPHP