get asiatech remaining traffic
- you need selenium and pyvirtualdisplay
pip install selenium
pip install pyvirtualdisplay
- and you need to download geckodriver and copy it to /usr/local/bin/ with this command:
wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz && tar -xf geckodriver-v0.19.1-linux64.tar.gz && rm geckodriver-v0.19.1-linux64.tar.gz && sudo mv geckodriver /usr/local/bin/
- open 1544.py with any text editor
- place your username and password
- you ready to go
run command below:
python 1544.py
you can add alias in bashrc to run this script from anywhere with your custom command:
- open ~/.bashrc with any text editor like vim or gedit
- add this line into bashrc
alias GetTraffic='YOUR_PATH_TO_1544.py_FILE/1544.py'
- then type this command to reload bashrc
source ~/.bashrc
- enter GetTraffic command to run the script