Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. LAST PASTE
  2.  
  3. from selenium import webdriver
  4. from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
  5. driver = webdriver.Remote("http://localhost:4444/wd/hub",desired_capabilities=webdriver.DesiredCapabilities.HTMLUNITWITHJS)
  6. page_source=driver.get(url)
  7. print page_source
  8.  
  9. NONE
  10.  
  11. RESOLVED BY print driver.page_source.encode('utf-8')
  12.  
  13. __________________________________________________________________
  14.  
  15. url="http://hl2coopgames.ru/sourcebans/index.php?p=servers&s=4"
  16. The problem persist, i can't obtain good content from webpage, seems ajax is not replacing the code in it:
  17.  
  18. <td height="16" class="listtable_1" id="map_44">
  19.  
  20. N/A
  21.  
  22. all N/A occurences should be replaced with the appropriate text
  23.  
  24. works only with firefox driver for the moment
  25.  
  26. any solution ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement