https://github.com/animesh/scripts

Miscellaneous scripts moved from https://code.google.com/p/misccb/

https://github.com/animesh/scripts

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Miscellaneous scripts moved from https://code.google.com/p/misccb/

Basic Info
Statistics
  • Stars: 4
  • Watchers: 3
  • Forks: 3
  • Open Issues: 0
  • Releases: 0
Created almost 11 years ago · Last pushed 10 months ago
Metadata Files
Readme Security

README.md

git reset HEAD~

dockerImage:

docker.io/animesh1977/scripts

ignore MS/DOS endings (on windows machines):

git config --global core.autocrlf true

aliases

rebase

beflog

stash

log --graph

bisect

merge

push --force-with-lease

config setup

git clone http://github.com/animesh/scripts

cd scripts

ln -s $PWD/config.bash $HOME/.bashrc

* !. *.pdf *.asv *.csv *.txt *.history *swp *gz *tsv

Auto Login and Form Submission Script

This script uses Selenium to automatically log in to a website and submit a form using credentials and data from environment variables.

Requirements

  • Python 3.x
  • Google Chrome browser
  • ChromeDriver (matching your Chrome version)
  • selenium Python package

Setup

  1. Install dependencies: bash pip install -r requirements.txt
  2. Download ChromeDriver:

    • Download from: https://sites.google.com/a/chromium.org/chromedriver/downloads
    • Place the chromedriver binary in your PATH or specify its location with the CHROMEDRIVER_PATH environment variable.
  3. Set environment variables:

    • LOGIN_URL: The URL of the login page.
    • LOGIN_USERNAME: Your username.
    • LOGIN_PASSWORD: Your password.
    • FORM_FIELD_1: Data for the form field (example; add more as needed).
    • CHROMEDRIVER_PATH: (Optional) Path to your chromedriver binary.

Example (Linux/macOS): bash export LOGIN_URL='https://example.com/login' export LOGIN_USERNAME='your_username' export LOGIN_PASSWORD='your_password' export FORM_FIELD_1='your_form_data' export CHROMEDRIVER_PATH='/path/to/chromedriver'

Usage

Run the script: bash python auto_login_form.py

Customization

  • Update the field selectors in auto_login_form.py to match the actual names or XPaths of the login and form fields on your target website.
  • Add more environment variables and form fields as needed.

Notes

  • The script runs Chrome in headless mode by default.
  • For troubleshooting, remove the --headless option to see the browser window.

Owner

  • Name: Ani
  • Login: animesh
  • Kind: user
  • Location: Norway
  • Company: Norwegian University of Science and Technology

A medical graduate from Delhi University with post-graduation in bioinformatics from Jawaharlal Nehru University, India.

GitHub Events

Total
  • Watch event: 1
  • Push event: 142
Last Year
  • Watch event: 1
  • Push event: 142

Dependencies

scratch.csproj nuget
  • LinqInfer 6.0.0-beta
  • Microsoft.ML 1.5.2
Dockerfile docker
  • quay.io/nird-toolkit/deep-learning-tools2 20230823-211329a build
package-lock.json npm