How to extract a link/url from java onclick=

emperorjones

Новичок
Регистрация
18.09.2014
Сообщения
27
Благодарностей
1
Баллы
3
Hi everyone,

I am trying to extract links from this site/page:

http://find.coolsculpting.com/find-a-center/?z=60601

The link I'm looking for is the "Contact this Practice" link. In the source code its hidden as a code. I can use regex:(?<=\ onclick="ContactPractice\(').*?(?='\)">) and grab the code, but I can't figure out how to bring it up as a direct link. The site seems to be using that code to fill in a form instead of bringing up a web page.

I'm wondering if there is there anyway using zennoposter to use the codes to automate the process of bringing up the pages I am seeking, or do I just need to click on each link one at a time?

Thanks!
 

emperorjones

Новичок
Регистрация
18.09.2014
Сообщения
27
Благодарностей
1
Баллы
3
Thanks. How would a post request work in this instance?

I've built my project to just click one by one & its working fine, but I'm interested in other ways that might also work.
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
915
Баллы
113

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