APIs for loginning some websites using <selenium>.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.
preparing
Websites | Core Codes | in Chinese |
---|---|---|
Bilibili | click | B็ซ |
run "pip install SeleniumLogin"
(1) Offline
Step1: git clone https://github.com/CharlesPikachu/SeleniumLogin.git@master
Step2: cd SeleniumLogin -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/SeleniumLogin.git@master"
To use this repo, you have to install Chrome Browser and download chromedriver from:
http://npm.taobao.org/mirrors/chromedriver/
from SeleniumLogin import login
lg = login.Login()
username, browser = lg.bilibili(username=xxx, password=xxx, chromedriverpath=xxx)