Skip to main content

Auto fill in your form using your saved information (or answer on the spot).

Project description

python-package-template

header PyPI version GitHub version Python package Upload Python Package license

Auto fill in your form using your saved information (or answer on the spot).

Installation

  1. Install Auto-Fill-In (There are two ways to install):
    • Install from PyPI (recommended):
      $ sudo pip install Auto-Fill-In
      
    • Alternatively: install PyGuitar from the GitHub source:
      $ git clone https://github.com/iwasakishuto/Auto-Fill-In.git
      $ cd Auto-Fill-In
      $ sudo python setup.py install
      
  2. Install driver for selenium: Selenium requires a driver to interface with the chosen browser, so please visit the documentation to install it.
    # Example: Chrome
    # visit "chrome://settings/help" to check your chrome version.
    # visit "https://chromedriver.chromium.org/downloads" to check <Suitable.Driver.Version> for your chrome.
    $ wget https://chromedriver.storage.googleapis.com/<Suitable.Driver.Version>/chromedriver_mac64.zip
    $ unzip chromedriver_mac64.zip
    $ mv chromedriver /usr/local/bin/chromedriver
    $ chmod +x /usr/local/bin/chromedriver
    

Quick example

  • example notebooks
  • Check Environment Files:
    • Python Module:
    >>> from autofill.utils import show_envfiles
    >>> show_envfiles()
    * PATH: /Users/iwasakishuto/.autofill/_sample.json
            - name      : SAMPLE FORMS
            - URL       : https://forms.office.com/Pages/ResponsePage.aspx?id=XXX
            - last_date : 2020-08-18@22.08.45
            - other keys: ['form', 'login', 'answer']
    
    • Command line:
    $ auto-fill-in-envs
    [success] local driver can be built.
    [failure] remote driver can't be built.
    DRIVER_TYPE: local
    * PATH: /Users/iwasakishuto/.autofill/_sample.json
            - name      : SAMPLE FORMS
            - URL       : https://forms.office.com/Pages/ResponsePage.aspx?id=XXX
            - last_date : 2020-08-18@22.08.45
            - other keys: ['form', 'login', 'answer']
    
  • Form Auto Fill In:
    • Python Module:
    >>> from autofill import forms
    >>> form = forms.get("office", path="PATH")
    DRIVER_TYPE: local
    >>> form.run()
    :
    
    • Command line:
    $ form-auto-fill-in "PATH"
    [success] local driver can be built.
    [failure] remote driver can't be built.
    DRIVER_TYPE: local
    :
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Auto-Fill-In-0.0.1.tar.gz (12.5 kB view hashes)

Uploaded Source

Built Distribution

Auto_Fill_In-0.0.1-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page