hectic problem - help needed

webmuthu

Пользователь
Регистрация
27.11.2012
Сообщения
43
Благодарностей
0
Баллы
6
And, will you clarify me please!

i'm making a common bot for multiple sites. sites contains login page and with posting that's all.
just like CMS sites.

when i record some pages which is not suitable to all pages.
simply i faced a problem in login page. some are with captcha and some were no captcha and search field too.


i did something and i logged into content page. content page have topics. topics may vary in links. some pages were 1, some were 2 and even some were 5 in random order with various languages.

but i have too many sites.
how can i select a particular link like "forum" if available on the page? - this is the major doubt.
can i use javascript?- if so how can I? – any samples

and another is select field. some postings have single select field and some were with sub type selection field.
i want to select a random value in select field if available on the page? - another major doubt

how can i find a textbox if available on the page?
and if available some work and if not some work how to achieve this.


how can i find a captcha available on the page?
and if available some work and if not some work how to achieve this.


important thing is - i not record a particular page and do those things.
you really understand my problem?. sorry for ambiguity.
i can't able to chat with u. our working times may vary.


i'm extremely thanking you for your valuable guidance.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Okay, first the captcha problem. Record a page that does have a captcha. Then when the template gets to that point on a site that doesn't have captcha just go off of the unsuccessful exit (red dot) to bypass the captcha or you can set the captcha as optional by right clicking on the action and setting it as optional and zenno won't fail to follow through. The same goes for most of your problems here. Record every possible scenario on different sites like if there is forum link or not and either use red dot to go do something else if it doesn't exist or set this action as optional and if not found zenno will skip it and move on.
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
how can i select a particular link like "forum" if available on the page? - this is the major doubt.
can i use javascript?- if so how can I? – any samples
Links on html usually looks like/within "&" -------"http://...../forum/....."
So find them is easy:
"http[^"]*?forum[^"]*?"
OR:
"http[^"\r\n]*?forum[^"\r\n]*?"

(?<=")http[^"\r\n]*?forum[^"\r\n]*?(?=")
----------------------------------
If forum,phorum, bbs.....etc, then:
(?<=")http[^"]*?(forum|phorum|bbs)[^"]*?(?=")
it should work.
 

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