Skip to content

Python Selenium Bot to bulk apply the NEPSE's listed IPO from meroshare portal

License

Notifications You must be signed in to change notification settings

bistasulove/ipo-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPO Bot

This is selenium based bot made in Python to automate the IPO application process

Getting up and running ( Installation )

  1. Check out the repository from Github

    git clone git@github.com:bistasulove/ipo-bot.git
    cd ipo-bot
  2. Install Python (if not already)

    Note: This project is running Python 3.9.10.

  3. Create Virtual Envrinoment Note: This step is optional but it is highly recommended you create a virtual environment so that you don't mess up dependencies.

    Create Virtual Environment On MacOS or Linux

    python -m venv myvenv

    Note: You might need to use python3 instead of python based on your python installation.

    Create Virtual Environment On Windows

    python -m venv myvenv

    Activate Virtual Environment on MacOS or Linux

    source myvenv/bin/activate

    Activate Virtual Environment on Windows

    myvenv\Scripts\activate
  4. Install Dependencies

    Use pip to install all the dependencies listed in requirements.txt file

    pip install -r requirements.txt
  5. Service Configuration

    You are supposed to create a .env file if you want to harness the feature of the bot:

    • Create a .env file inside the project root directory (ipo-bot)
    • Following environment variables are being used currently:
      • RECURRING_CUSTOMER - if value is set to True (RECURRING_CUSTOMER='True'), it checks the saved config from env file. Otherwise, it will ask the user input for which share to apply.
      • APPLY_ORDINARY_SHARES - if set to True (APPLY_ORDINARY_SHARES='True'), it will apply only Ordinary Shares and not Debentures
      • APPLY_ALL - if set to True (APPLY_ALL='True'), it will apply all of the shares
      • APPLY_FIRST - if set to True (APPLY_FIRST='True'), it will apply only the first share in the Open issues page
  6. Demat configuration

    You are supposed to add the details of yours and others demat accounts in user_details.csv file.

    Sample user_details.csv file

    alias dp_id username password crn txn_pin apply_unit
    Sulove 10900 1234567 password123 1233y84 1111 10
    Bista 10900 1235664 pass123 12314 2222 20
  7. Running program

     python main.py

Note: This project assumes that you have Google Chrome installed. Please change the driver in driver.py if you want to run other browser.

About

Python Selenium Bot to bulk apply the NEPSE's listed IPO from meroshare portal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages