diff --git a/README.md b/README.md index 7ce3ad2..1f5fc6e 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,29 @@ # library book reissue automation -## features --> Automatically reissues the book if today is the due date of returning the book +## FEATURES +* Automatically reissues the book if today is the due date of returning the book --> can be run from terminal from anywhere +* can be run from terminal from anywhere --> username and password have to be entered at first run only +* username and password have to be entered at first run only -## Installation +## INSTALLATION -clone the repository and run terminal inside the repository +Either clone or download the repository. + +to clone + +`git clone https://github.com/shubham7298/Library-Automation` + +enter the repository + +`cd Library-Automation` run installation file -`bash install` +`sudo bash install` -##running +## RUNNING open terminal anywhere diff --git a/python/install b/python/install index c0a9c3c..ef57762 100644 --- a/python/install +++ b/python/install @@ -1,7 +1,8 @@ -#!/usr/bin/env bash -echo "Run this command as sudo."; +#!/bin/bash sudo cp -r reissue_book /usr/bin/; sudo cp reissue /usr/bin/; -sudo chmod 777 /usr/bin/reissue; +sudo chmod 755 /usr/bin/reissue; sudo pip3 install selenium; -echo "Done"; \ No newline at end of file +echo "#################################" +echo "Library Automation tool successfully installed"; +echo "Type 'reissue' anywhere on terminal screeen :)" \ No newline at end of file diff --git a/python/reissue b/python/reissue index d24e3cf..0aed7c4 100755 --- a/python/reissue +++ b/python/reissue @@ -1 +1,2 @@ +#!/bin/bash python3 reissue_book/Library_college.py \ No newline at end of file diff --git a/python/reissue_book/Library_college.py b/python/reissue_book/Library_college.py index a53643e..4cda3d0 100644 --- a/python/reissue_book/Library_college.py +++ b/python/reissue_book/Library_college.py @@ -1,4 +1,4 @@ - +#!/usr/bin/python3 from selenium import webdriver from selenium.webdriver.firefox.options import Options from builtins import input