Variable Elements to click

Hansi3003

Новичок
Регистрация
17.03.2016
Сообщения
2
Благодарностей
0
Баллы
1
Hello,

i have a problem with this site http://www.sportlerfrage.net/frage/sind-die-werte-fuer-fettabbau-und-muskelaufbau-gut

do you see the up & down arrows on this page? there are 3 of them. (3 up - 3 down)

they have all the same name.

when i create a bot to click the last answer up arrow a few times. the answer goes up. My problem with this is. The match Number is incorrect and i need to edit them all the time. If i didn't do that the bot clicks on a other Answer and this goes up.

Every Anwers have a unique id. can i tell the bot to click only on answers with this id? or the bot scrapes the username and click only on this element with the right username in it?

Hope there is a solution for this.

Thanks

Hans
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Logic (if you dont code on C#) should be like this:
With regex you scrape to list ansers texts
In loop you check each answer if it's answer that you need. If found - You keep loop's counter in variable.
This variable is used as mach number for click on voting element
 

Hansi3003

Новичок
Регистрация
17.03.2016
Сообщения
2
Благодарностей
0
Баллы
1
ah so simple. got it thanks
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)