After clicking a button on the page, HTML elements are loaded. How to handle a button press with the help of grab and re-parse the page?

  • grub or grab? - KoVadim
  • Did not notice the error. Grab, of course. - ND7
  • Fuh, I was so scared that I even went to read from the post .. - spirit

1 answer 1

Grab can only work with forms via .set_input () and .submit (), for javascript processing, look away, for example, PhantomJS.

You can, of course, get a button element, find its click handler, pull out a link from the function or what is generated there, but this is very dreary and the result will always be unpredictable.