daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.     services:
  3.     selenium-hub:
  4.         image: selenium/hub:3.141.59-dubnium
  5.         container_name: selenium-hub
  6.         ports:
  7.         - "4444:4444"
  8.     chrome:
  9.         image: selenium/node-chrome:3.141.59-dubnium
  10.         volumes:
  11.         - /dev/shm:/dev/shm
  12.         depends_on:
  13.         - selenium-hub
  14.         environment:
  15.         - HUB_HOST=selenium-hub
  16.         - HUB_PORT=4444
  17.         networks:
  18.         - backend
  19.     nbdatascience:
  20.         container_name: nbdatascience
  21.         image: aabor/nbdatascience
  22.         build: nbdatascience/.
  23.         volumes:
  24.         - /home/$USER/py:/home/jovyan/work/py
  25.         - /home/$USER/.jupyter:/home/jovyan/.jupyter
  26.         ports:
  27.         - "10000:8888"
  28.         environment:
  29.         - TZ="Europe/Kiev"
  30.         restart: always
  31.         networks:
  32.         - backend
  33.         depends_on:
  34.         - chrome
  35.     networks:
  36.     backend:
  37.         driver: bridge
  38.    
  39. from selenium import webdriver
  40. from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
  41. cap = DesiredCapabilities.CHROME
  42. driver = webdriver.Remote(command_executor='localhost:4444', desired_capabilities=cap)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top