我试图在每次我的代码单击下一页和剪贴表时使用Selenium Web驱动程序python剪贴每个页面HTML表,但是我无法这样做,因为我不知道每次都如何单击这些数字使用python代码。所以我在这里共享HTML代码
<div class="dataTables_paginate paging_full_numbers" id="orgSanitarias_paginate">
<a class="paginate_button first disabled" aria-controls="orgSanitarias" data-dt-idx="0" tabindex="0" id="orgSanitarias_first"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">First</font></font></a>
<a class="paginate_button previous disabled" aria-controls="orgSanitarias" data-dt-idx="1" tabindex="0" id="orgSanitarias_previous"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Previous</font></font></a>
<span>
<a class="paginate_button current" aria-controls="orgSanitarias" data-dt-idx="2" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">one</font></font></a>
<a class="paginate_button " aria-controls="orgSanitarias" data-dt-idx="3" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">two</font></font></a>
<a class="paginate_button " aria-controls="orgSanitarias" data-dt-idx="4" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3</font></font></a>
<a class="paginate_button " aria-controls="orgSanitarias" data-dt-idx="5" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">4</font></font></a>
<a class="paginate_button " aria-controls="orgSanitarias" data-dt-idx="6" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">5</font></font></a>
<span><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">…</font></font</span>
<a class="paginate_button " aria-controls="orgSanitarias" data-dt-idx="7" tabindex="0"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">38</font></font></a></span>
<a class="paginate_button next" aria-controls="orgSanitarias" data-dt-idx="8" tabindex="0" id="orgSanitarias_next"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Next</font></font></a>
<a class="paginate_button last" aria-controls="orgSanitarias" data-dt-idx="9" tabindex="0" id="orgSanitarias_last"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Last</font></font></a></div>`
我需要有关代码的想法,该代码如何通过每次单击数字以获取页面的表格来简化html表。谢谢。任何帮助。