Click one of a link in a page (randomly)

  • Автор темы Автор темы myboty
  • Дата начала Дата начала

myboty

Новичок
Регистрация
22.05.2019
Сообщения
28
Реакции
1
Баллы
3
Hello,

I'm creating my first script with Zennoposter. I would like to simulate a visitor's surfing. Any link on the page should be randomly clicked.
I don't know how to do that.

Thank you for your help.
 
I have to do the same thing for ten pages, I don't see myself doing it for 100 links. There must be a smart method with Zennoposter.
 
I have to do the same thing for ten pages, I don't see myself doing it for 100 links. There must be a smart method with Zennoposter.

LOL I posted logic steps you have to take to achieve what you want.
You have to make that logic once to use on any pages.
Of course there are many other ways how to do that, but I have posted one.
 
There are another way much shorter.
42726


If In previous logic you would be able to check if this link is an internal link or external link, then this logic will click any random link, even if this will be external link what will lead you to another page.
 
Thank you a lot @lokiys, I will try this way.
 
I search the regex to obtaint somethings like that:

grep -Po '(?<=href=")/[^#"]*(?=")' index.html

and adapt it to Zennoposter. If you have and idea.

I want to keep only internal URL. They are somethings like that :
/myurl
/my/url

I should exclude URL having a anchor in the beging /# or having http ou https
 
I have try:
^/[^#]*$
In accordance with the documentation, but it doesn’t work.
 
If you want to create regex, you should investigate source code of a webpage and use regex tester to create proper regular expressions to parse links.
 

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