Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LAST PASTE
- from selenium import webdriver
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
- driver = webdriver.Remote("http://localhost:4444/wd/hub",desired_capabilities=webdriver.DesiredCapabilities.HTMLUNITWITHJS)
- page_source=driver.get(url)
- print page_source
- NONE
- RESOLVED BY print driver.page_source.encode('utf-8')
- __________________________________________________________________
- url="http://hl2coopgames.ru/sourcebans/index.php?p=servers&s=4"
- The problem persist, i can't obtain good content from webpage, seems ajax is not replacing the code in it:
- <td height="16" class="listtable_1" id="map_44">
- N/A
- all N/A occurences should be replaced with the appropriate text
- works only with firefox driver for the moment
- any solution ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement