Skip to content

Instantly share code, notes, and snippets.

Created June 17, 2015 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/63728520f246de98980b to your computer and use it in GitHub Desktop.
Save anonymous/63728520f246de98980b to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
if __name__ == '__main__':
driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true'])
driver.get('http://ost.io/@paulmillr')
wait = WebDriverWait(driver, 40)
wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR,
"ul.user-repo-list")))
print(driver.page_source)
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment