https://github.com/animesh/scripts
Miscellaneous scripts moved from https://code.google.com/p/misccb/
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
Repository
Miscellaneous scripts moved from https://code.google.com/p/misccb/
Basic Info
- Host: GitHub
- Owner: animesh
- License: gpl-2.0
- Language: Perl
- Default Branch: master
- Homepage: https://www.docker.com/animesh1977/scripts
- Size: 11.4 MB
Statistics
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
- Releases: 0
Metadata Files
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)
seleniumPython package
Setup
- Install dependencies:
bash pip install -r requirements.txt Download ChromeDriver:
- Download from: https://sites.google.com/a/chromium.org/chromedriver/downloads
- Place the
chromedriverbinary in your PATH or specify its location with theCHROMEDRIVER_PATHenvironment variable.
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 yourchromedriverbinary.
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.pyto 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
--headlessoption to see the browser window.
Owner
- Name: Ani
- Login: animesh
- Kind: user
- Location: Norway
- Company: Norwegian University of Science and Technology
- Website: https://www.fuzzylife.org
- Twitter: animesh1977
- Repositories: 749
- Profile: https://github.com/animesh
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
- LinqInfer 6.0.0-beta
- Microsoft.ML 1.5.2
- quay.io/nird-toolkit/deep-learning-tools2 20230823-211329a build