Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| # install chromium, its driver, and selenium | |
| !apt install chromium-chromedriver | |
| !pip install selenium | |
| # set options to be headless, .. | |
| from selenium import webdriver | |
| options = webdriver.ChromeOptions() | |
| options.add_argument('--headless') | |
| options.add_argument('--no-sandbox') | |
| options.add_argument('--disable-dev-shm-usage') | |
| # open it, go to a website, and get results |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| import sqlalchemy | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy import Column, Integer, String, ForeignKey | |
| from sqlalchemy.orm import sessionmaker, relationship | |
| engine = sqlalchemy.create_engine('sqlite:///:memory:') | |
| Base = declarative_base() |
| // demo: http://jsfiddle.net/v123582/j6r454om/ | |
| <select class="mobile-vendor-1"> | |
| <option value="motorola">Motorola</option> | |
| <option value="nokia">Nokia</option> | |
| <option value="android">Android</option> | |
| </select> | |
| <select class="model-1"> | |
| <option></option> |