0

Given two URLs, where the second URL (URL2) was reached after performing some action on the first URL (URL1).

I wish to scan URL1 for possible call to action links/buttons which can lead to second URL. [I know the complete URL along with query parameters of both URLs]

What method/toolkit would you suggest as the best approach for this.

matsjoyce
  • 5,744
  • 6
  • 31
  • 38
subiet
  • 1,399
  • 1
  • 12
  • 18

1 Answers1

0

If all links on page by URL1 is static links (not generated by js/serverside actions) then you could use for example jQuery and get all elements with href (forms with action) attribute like this:

$('a[href$="ABC"]')
$('form[action$="ABC"]')

Similar question: Select <a> which href ends with some string

For python may be usefull will: http://pypi.python.org/pypi/pyquery

Community
  • 1
  • 1
Sergey Vedernikov
  • 7,609
  • 2
  • 25
  • 27