Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
How can I get the link in this button?

I found this button in a website that I want to get the link where it is pointing but I can't find the href tag, where can the href tag be?

<button aria-label=“..“><span>...</span></button>

EDIT:

  • This is the website.
  • This is the button I want to get the link from: enter image description here
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If there is no anchor element or onclick attribute visible on the button html code, possibly it has a JavaScript listener attacked that is triggering the redirect on click like:

 document.getElementById("myButton").onclick = function () {
    location.href = "www.yoursite.com";
};

If you have access to see the page JavaScript, you may want to scrape that info from there. If the page is very complex, it may be very hard to know where the trigger is being created just by scraping. But this is something you usually can't automate.

If the button is part of a form element, you may be able to see the form action and scrape it from there, still there is a chance that the form submit event is routed though JavaScript as well.

With the given page, what can I tell is that resulting pages have the following format:

https://resultados.gob.ar/elecciones/3/[NUMBER]/1/-1/-1/

If you replace number with a value between 1-24 you get to a page corresponding to the ordinal element of the link you gave. You may want to scrape the data from each of the 24 possible values given that there is no expectation about the links changing overtime.

Setting the value to zero gives the initial page. There is no need to write the name after the URL. Furthermore, a 403 response is given but you still get html and content that looks like is loaded through JavaScript.

If you want the raw data, your best bet is using this:

https://resultados.gob.ar/assets/mapas/[number].json

But then still you would need to understand that data which is not trivial.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!