diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-12-24 06:26:56 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-12-24 06:26:56 +0530 |
commit | 6faa2b3ee536f7d9c67a872064f317284a63ceec (patch) | |
tree | f3e36d9910f8956670a1a3a2646024a9ba82bdc8 | |
parent | cc49e60041b8958fedf5c0a519a92f646d9bae74 (diff) |
readme - indentation+brief look
-rw-r--r-- | README.md | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -3,11 +3,13 @@ A small python script which allows you to automatically login to a captive porta ## Pre-Requisites: -[Selenium Webdriver](https://www.selenium.dev/documentation/webdriver/) for Python (install using `pip install selenium` or `pip install -r requirements.txt`) -[GNU pass](https://www.passwordstore.org/) for storing wifi-credentials (One can store their credentials in the script as plaintext aswell) +[Selenium Webdriver](https://www.selenium.dev/documentation/webdriver/) for Python (install using `pip install selenium` or `pip install -r requirements.txt`) +[GNU pass](https://www.passwordstore.org/) for storing wifi-credentials (One can store their credentials in the script as plaintext aswell) geckodriver for Firefox in PATH (optional if not already included in selenium webdriver) ([Download link](https://github.com/mozilla/geckodriver/releases)) +## Brief Look: +[![auto-login](https://draconyan.xyz/pix/auto-login.gif)](https://draconyan.xyz/pix/auto-login.mp4) ## Usage: ``` @@ -49,17 +51,14 @@ And execute it from anywhere as: ``` ## Intentions: -I originally wished to create a bashscript to log into my College wifi-portal just using the terminal. -I later set up [this makeshift script](https://github.com/justsaumit/.dotfiles/blob/main/.scripts/wifi-captive-login) -which just finds out the gateway IP and uses st's -e flag that allows st to open the captive-portal in a webbrowser on a new temporary terminal window. -Issue was I still had to type in my wifi credentials _everytime_ :/ -With this it is the same except I get to automate it using [gnu pass](https://www.passwordstore.org/) +I originally wished to create a bashscript to log into my College wifi-portal just using the terminal. +I later set up [this makeshift script](https://github.com/justsaumit/.dotfiles/blob/main/.scripts/wifi-captive-login) +which just finds out the gateway IP and uses st's -e flag that allows st to open the captive-portal in a webbrowser on a new temporary terminal window. +Issue was I still had to type in my wifi credentials _everytime_ :/ +With this it is the same except I get to automate it using [gnu pass](https://www.passwordstore.org/) and that using XPath(XML Path) to find elements is really convenient. ## Future additions: -Update the script upon reaching college as the Xpath values would differ. -Make the python-script platform independent +Update the script upon reaching college as the Xpath values would differ. +Make the python-script platform independent or just Make a separate pure bashscript to log in via CLI using curl. - - - |