Skip to content

Selenium automation in Python to bulk create SafeEntry QR codes at https://www.ndi-api.gov.sg/safeentry

Notifications You must be signed in to change notification settings

kennethlimcp/safeentry-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

Use this at your own risk.

Mass application of SafeEntry QR code

This python script controls Selenium to navigate through SafeEntry website and allow bulk application of QR codes through automation.

You will only need to login once using CorpPass and all the QR codes will be generated at one go, if nothing goes wrong.

app-automate

Yes, things do break:

app-error

What is the motivation?

I had to create register 550 sites for SafeEntry QR application and doing this by hand will likely result in human error and, it's super slowwww and repetitive..

This application can create a QR code every 5 to 8 seconds. The time I took to create 12 of them was about 75 seconds.

Things that you will require beforehand

  1. Singpass mobile app
  2. UEN number
  3. CorpPass ID
  4. CorpPass Password
  5. List of locations to create QR codes

Stuff to install

  1. $ pip3 install selenium
  2. Download chromedriver and place it in this folder

What to configure in the script

DOWNLOAD_DIR = ""    # Location to store the QR codes
UEN_ID = ""          # UEN Number
CORPPASS_ID = ""     # CorpPass ID
PASSWORD = ""        # CorpPass password
EMAIL_ADDRESSES = "" # List of emails to send QR to, delimited by comma

About

Selenium automation in Python to bulk create SafeEntry QR codes at https://www.ndi-api.gov.sg/safeentry

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages