Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created July 30, 2017 22:52
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 sergiolucero/eb5e253d8a8bdec6a1972192c1e8eb96 to your computer and use it in GitHub Desktop.
Save sergiolucero/eb5e253d8a8bdec6a1972192c1e8eb96 to your computer and use it in GitHub Desktop.
python calls my shiny Rplotter
# starting point is https://github.com/smouksassi/ggplotwithyourdata
from pyvirtualdisplay import Display
from selenium import webdriver
RPLOTTER_URL = 'http://50.116.4.6:3838/'
with Display():
browser = webdriver.Firefox()
try:
browser.get('http://www.google.com')
print browser.title #this should print "Google"
finally:
browser.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment