Im using mechanize
to scrape a few pages. Pagination is implemented by a javascript post, and the pagination links are actually input
buttons. These are not included in a form. Any idea how I could trigger a click on these?
Im still working on the script, and can use either mechanize-ruby
or mechanize-python
. A solution in either would help.
The html of the buttons is:
<input name="px" value="1" class="pSel" disabled="true\" type="button">
<input name="px" value="2" class="page_select" onclick="apply_pagination(this);" type="button">
<input name="px" value="3" class="page_select" onclick="apply_pagination(this);" type="button">
...
<input name="px" value="10" class="page_select" onclick="apply_pagination(this);" type="button">