SHARE
TWEET

Untitled

a guest Jun 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PageTable = soup.find('table',{'id':'rzrqjyzlTable'})
  2. print(PageTable)
  3.      
  4. <table class="tab1" id="rzrqjyzlTable">
  5.  <div id="PageNav" class="PageNav" style="">
  6.  <div class="Page" id="PageCont">
  7.   <a href="javascript:void(0);" target="_self" class="nolink">Previous</a>3<span class="at">1</span>
  8.   <a href="javascript:void(0);" target="_self" title="Page 2">2</a>
  9.   <a href="javascript:void(0);" target="_self" title="Page 3">3</a>
  10.   <a href="javascript:void(0);" target="_self" title="Page 4">4</a>
  11.   <a href="javascript:void(0);" target="_self" title="Page 5">5</a>
  12.   <a href="javascript:void(0);" target="_self" title="Next group" class="next">...</a>
  13.   <a href="javascript:void(0);" target="_self" title="Last Page">45</a>
  14.   <a href="javascript:void(0);" target="_self" title="Page 2">Next Page</a>
  15.   <span class="txt">&nbsp;&nbsp;Jump</span><input class="txt" id="PageContgopage">
  16.   <a class="btn_link">Go</a></div>
  17.                         </div>
  18.      
  19. try:      
  20.     page = browser.find_element_by_link_text(u'Next Page')
  21.     page.click()    
  22.     browser.implicitly_wait(3)
  23.   except NoSuchElementException:
  24.     print("NoSuchElementException")
  25.  
  26.   soup = BeautifulSoup(browser.page_source, 'html.parser')
  27.   PageTable = soup.find('table',{'id':'rzrqjyzlTable'})
  28.   print(PageTable )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top