CoCalc Public Fileschromedriver-test.ipynbOpen with one click!
Author: Harald Schilly
Views : 138
Compute Environment: Ubuntu 18.04 (Deprecated)
In [1]:
from selenium import webdriver from selenium.webdriver.common.keys import Keys options = webdriver.ChromeOptions() options.add_argument('--headless') options.add_argument('--disable-gpu') options.add_argument('--no-sandbox') options.add_experimental_option( 'prefs', { 'download.default_directory': '/home/user/tmp', 'download.prompt_for_download': False, 'download.directory_upgrade': True, 'safebrowsing.enabled': True } )
In [2]:
driver = webdriver.Chrome(chrome_options=options) driver.implicitly_wait(10)
In [3]:
driver.get('https://cocalc.com/')
In [4]:
body = driver.find_element_by_tag_name('body') div1 = body.find_element_by_xpath('div[1]')
In [5]:
print(div1.text)
Collaborative Calculation in the Cloud Create Account! or sign in with your account Online computing environment Intro to CoCalc (credits: Mark Quinn, University of Sheffield) CoCalc is a sophisticated online environment for Mathematical calculation: SageMath, GAP, SymPy, Maxima, …; Statistics and Data Science: R Project, Pandas, Statsmodels, Scikit-Learn, TensorFlow, NLTK, …; Document authoring: LaTeX, Markdown/HTML, ... General purpose computing: Python, Octave, Julia, Scala, … Zero Setup: getting started does not require any software setup. First, create your personal account. Then, create a project to instantiate your own private workspace. Finally, create a worksheet or upload your own files: CoCalc supports online editing of Jupyter Notebooks, Sage Worksheets, LaTeX files, etc. Collaborative Environment Share your files privately with project collaborators — all files are synchronized in real-time. Time-travel is a detailed history of all your edits and everything is backed up in consistent snapshots. Finally, you can select any document to publish it online. A default project under a free plan has a quota of 1.0 GB memory and 3.0 GB of disk space. Subscriptions make hosting more robust and increase quotas.
In [ ]: