Update README.md
This commit is contained in:
parent
3d51a899ed
commit
c440eda1f4
33
README.md
33
README.md
@ -1 +1,34 @@
|
|||||||
AUTO UPDATE DCU IP BY SELENIUM
|
AUTO UPDATE DCU IP BY SELENIUM
|
||||||
|
|
||||||
|
Python script ini digunakan untuk melakukan update IP DCU di HES Sunrise secara otomatis menggunakan selenium
|
||||||
|
|
||||||
|
prerequisite:
|
||||||
|
Python 3.13.0
|
||||||
|
openpyxl -> module untuk membaca file excel menggunakan python
|
||||||
|
pexpect -> untuk handle input di terminal, digunakan untuk auto insert password ssh
|
||||||
|
selenium terbaru.
|
||||||
|
chromedriver harus sesuai dengan versi google chrome. yang terinstall di laptop.
|
||||||
|
ChromeDriverManager
|
||||||
|
|
||||||
|
disarankan dijalan kan di virtual environment python.
|
||||||
|
|
||||||
|
lakukan installasi menggunakan pip.
|
||||||
|
|
||||||
|
pip install selenium openpyxl pexpect
|
||||||
|
|
||||||
|
sebelum menjalankan:
|
||||||
|
1. pastikan chrome_options.binary_location = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" <- diarahkan ke lokasi binari google chrome yang sudah terinstall
|
||||||
|
|
||||||
|
2. driver_path = "/Users/macos/Documents/SINDIGILIVE/CLIENTS/ICON+/Project-HES/Update_DCU/chromedriver/chromedriver <- diarahkan ke file binary chromedriver
|
||||||
|
|
||||||
|
3. pastikan file excel yang berisi data DCU berada di lokasi yang sama dengan file pythonnya.
|
||||||
|
|
||||||
|
4. di file jalankan.sh pastikan untuk value source diarahkan ke lokasi virtual environment (venv)
|
||||||
|
|
||||||
|
cara menjalankan:
|
||||||
|
|
||||||
|
./jalankan.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user