Last active
May 17, 2019 05:58
-
-
Save lantip/ad735501e1a737cb742d5a2dfc24761c to your computer and use it in GitHub Desktop.
Revisions
-
lantip revised this gist
May 16, 2019 . No changes.There are no files selected for viewing
-
lantip revised this gist
May 16, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Script ini hanyalah proof of concept untuk menyimpan laman satu website per 5 detik # Script semacam ini sudah dibuktikan cara kerjanya oleh pak Budi Rahardjo di https://www.youtube.com/watch?v=DYlgavNY9LE # Untuk menjalankan script ini dibutuhkan python3 dan library selenium dengan chromedriver # POC ini hanya menyimpan 5 berkas saja. Anda bisa menambahkan sesuka Anda. # Note: ini hanya script menyimpan screenshot, belum menjalankan fungsi seperti select input form. Itu akan ada di gist lain. -
lantip created this gist
May 16, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Script ini hanyalah proof of concept untuk menyimpan laman satu website per 5 detik # Script semacam ini sudah dibuktikan cara kerjanya oleh pak Budi Rahardjo di https://www.youtube.com/watch?v=DYlgavNY9LE&fbclid=IwAR0SfgeMrIGFAGtU8X0aiWW5wVEKq8ZZbc1mtlItZWMw6adGGsOZVspWTMI # Untuk menjalankan script ini dibutuhkan python3 dan library selenium dengan chromedriver # POC ini hanya menyimpan 5 berkas saja. Anda bisa menambahkan sesuka Anda. # Note: ini hanya script menyimpan screenshot, belum menjalankan fungsi seperti select input form. Itu akan ada di gist lain. from selenium import webdriver import time browser = webdriver.Chrome() browser.get('https://pemilu2019.kpu.go.id/#/ppwp/hitung-suara/') for i in range(5): browser.save_screenshot('Berkas Nomor '+str(i)+'.png') browser.refresh() time.sleep(5) browser.quit()