Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PageTable = soup.find('table',{'id':'rzrqjyzlTable'})
- print(PageTable)
- <table class="tab1" id="rzrqjyzlTable">
- <div id="PageNav" class="PageNav" style="">
- <div class="Page" id="PageCont">
- <a href="javascript:void(0);" target="_self" class="nolink">Previous</a>3<span class="at">1</span>
- <a href="javascript:void(0);" target="_self" title="Page 2">2</a>
- <a href="javascript:void(0);" target="_self" title="Page 3">3</a>
- <a href="javascript:void(0);" target="_self" title="Page 4">4</a>
- <a href="javascript:void(0);" target="_self" title="Page 5">5</a>
- <a href="javascript:void(0);" target="_self" title="Next group" class="next">...</a>
- <a href="javascript:void(0);" target="_self" title="Last Page">45</a>
- <a href="javascript:void(0);" target="_self" title="Page 2">Next Page</a>
- <span class="txt"> Jump</span><input class="txt" id="PageContgopage">
- <a class="btn_link">Go</a></div>
- </div>
- try:
- page = browser.find_element_by_link_text(u'Next Page')
- page.click()
- browser.implicitly_wait(3)
- except NoSuchElementException:
- print("NoSuchElementException")
- soup = BeautifulSoup(browser.page_source, 'html.parser')
- PageTable = soup.find('table',{'id':'rzrqjyzlTable'})
- print(PageTable )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement