I am trying to scrape website data and I can look for a tags that I want to explore.
However, this tags are like <a title="Annex" href="https://www.myite.com/d…-3.pdf?sfvrsn=b3a84558_2" sfref="[documents|librariesProv…-4ef8-8b90-ae20b6b7590d">
getting a.href
just returns https://www.myite.com/d…-3.pdf?sfvrsn=b3a84558_2
and that results in 404 page.
However, when I click on the tag on web page it opens pdf - the url is slightly modified.
How to handle these types of links in javascript. I am using js fetch similar to this post.
Thanks in advance.