Y
Y
Yuri Yurin-Komarov2015-02-13 12:18:04
C++ / C#
Yuri Yurin-Komarov, 2015-02-13 12:18:04

What is the algorithm for creating a bot for OK.ru?

Good day!
There was a need to write a bot for classmates. The essence is extremely simple: I got user IDs with the given criteria, then, with a certain time delay, the bot visits the pages and sends messages to them (don't kick me, I know that spam is bad).
Since there is no experience in writing bots and working with the API, you need to add up the sequence in your head. Do I need to register as a developer on Odnoklassniki to register an application? I just think that the administration will not miss such an application during moderation. Or would it be better to arm yourself with Charles, track HTTP requests for the actions I need and implement the whole thing in C#?
Sincerely,
Yuri Yurin-Komarov.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Fateev, 2015-02-13
@svfat

My guess is that ok.ru recognizes a bot that will only deal with http requests to spam messages (if it didn't, they would be mired in spam). I propose to immediately understand and use something like Selenium Webdriver. From the outside, it will look like the user opens a browser, logs in, goes to a certain page, etc.
The practical plus is that after understanding Selenium and playing with bots, you can write autotests for real web applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question