Page 1 of 1

Relative URL

Posted: Fri Jul 22, 2016 4:23 pm
by Apexmodels

I have created a project to scrape links, unfortunately the web site uses relative URLS, as below. I know the first part of the link, how can I insert this into my table?

<a href="../cgi-bin/wti0001p?&I=LXGBJU&P=Z"</a>

I want it to autocomplete to

<a href=""</a>



Re: Relative URL

Posted: Wed Aug 10, 2016 8:23 am
by webmaster
Are you using the Link property? Try creating a JavaScript Gatherer called Link with this code:

Code: Select all

return element.href

Code: Select all

return element.getAttribute("href");
and extracting the JS_Link property.

Re: Relative URL

Posted: Sat Nov 04, 2017 6:38 am
by Leesajohnson
You can define code into javascript file and set a code into a main page like this
Code: Select all
return element.getAttribute("href");