Before you started, you need to guarantee that you’ve already installed python3
and pip3
. If you’re working on a server, please also install Chrome before you install ChromDriver (because most of time you do not have Chrome already).
Note to use pip3 install Selenium==v4.0.0
, not the latest Selenium!
Before you start, add the config file config.ini
in the upmost directory, with the foramt below:
[identification_information]
account_config=3190117890
password_config=Kita@8920
Please go to the GitHub Release Website to download the right version of your app.
We assume that you’ve already installed Chrome
on your computer. If you haven’t, go to the Official Web to download it.
Install the Chrome driver
You also need to install chromedriver
into your system PATH
.
Before started
Before you install the chromedriver, you should have:
Then you need to install the chromedriver
.
Check for the right version of Chrome
Please open the current Chrome (if you have) and check which version you're in. For example, mine is 94.0.4606.
Download the correct version of chromedriver
Go to the download website to download the correct version of ChromeDriver. If you're using Windows, make sure you download the Windows version. I'm using Mac, so I'll download the Mac version.
After downloading, please unzip the file and move it to your system PATH.
Then please check whether you've successfully installed your chromedriver. If you see the feedback below, you're all set.
Notes:
- You must download exactly the same version of chromedriver
as your chrome browser if you want to use the chromedriver
as your selenium driver. The chrome browser on your machine is likely to be updated automatically when a new version is released. In this case, please update to the newest version of chromedriver
too.
- I strongly recommend you to install the chromedriver
into the system software directory immediately, i.e. it should appear in /usr/local/bin/chromedriver
.
Just double-click on the program and it will automatically ask you to enter your account and password for logging in.
git clone https://github.com/BiEchi/ZJU_PunchClock
pip3 install selenium
pip3 install time
pip3 install configparser
We assume that you’ve already installed Chrome
on your computer. If you haven’t, go to the Official Web to download it.
Install the Chrome driver
You also need to install chromedriver
into your system PATH
.
Before started
Before you install the chromedriver, you should have:
Then you need to install the chromedriver
.
Check for the right version of Chrome
Please open the current Chrome (if you have) and check which version you're in. For example, mine is 94.0.4606.
Download the correct version of chromedriver
Go to the download website to download the correct version of ChromeDriver. If you're using Windows, make sure you download the Windows version. I'm using Mac, so I'll download the Mac version.
After downloading, please unzip the file and move it to your system PATH.
Then please check whether you've successfully installed your chromedriver. If you see the feedback below, you're all set.
Notes:
- You must download exactly the same version of chromedriver
as your chrome browser if you want to use the chromedriver
as your selenium driver. The chrome browser on your machine is likely to be updated automatically when a new version is released. In this case, please update to the newest version of chromedriver
too.
- I strongly recommend you to install the chromedriver
into the system software directory immediately, i.e. it should appear in /usr/local/bin/chromedriver
.
At last, just run the main.py
program.
python3 main.py