A python package for login google by selenium
Project description
Google login with Selenium
Overview
This is a small package to log in to Google account with Selenium. After signin, Chrome profile of that user will be create and stored. With Chrome profile you can do so many automatic things with it.
Always active extension is installed by default.
This has been developed for testing purposes only. Any action you take using this script is strictly at your own risk. I will not be liable for any losses or damages you face using this script.
Requirement
Must have Python <= 3.9 and Google Chrome installed.
Usage
pip install login_gmail_selenium
And then on example.py
from login_gmail_selenium.util.profile import ChromeProfile
profile = ChromeProfile(email, password, backup_email)
# To allow downloads add insecure=True to ChromeProfile
driver = profile.retrieve_driver()
profile.start()
# Do whatever with driver afterward
driver.get('https://www.google.com/')
...
Add folder extension/ if you want custom extensions for Chrome (.crx or .zip). Your folder should look like this
/temp
/profiles
/profile1
/profile2
/extension
extension1.zip
extension2.crx
example.py
Upload to pypi
- Organize your code into proper file hierarchy
- Add a LICENSE and a README.md if not already done
/demopackage
__init__.py
demopackage.py
/demosubpackage
__init__.py
demosubpackage.py
/tests
test_package.py
LICENSE
setup.py
-
Create (if not have) and check for version on setup.py
-
Generate distribution archive files
pip install --upgrade setuptools wheel
python setup.py sdist bdist_wheel
This should create a dist/ and build/ folder in your main directory with the compressed files of your package! 5. Upload your distribution archives to PyPI
pip install --upgrade twine
twine upload dist/*
You will be prompted for your PyPI login credentials, and then the upload will begin. Now you should be able to log in to your PyPI account and see your package.
License
Copyright © 2022 MoliGroup, MIT license. For an improvement or a bug please feel free to open a PR
For work information please contact ngminhhoang1412@gmail.com or LinkedIn.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for login_gmail_selenium-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db6f86b6d7598fb7af65e7d72033e8daf2ee091fcaeca02b9f3d7b12c3d7585 |
|
MD5 | 2414920b88d769aa093418a851347688 |
|
BLAKE2b-256 | de3d875e08cf4b2e2e80e82f5436a3eb9c744ee4f9fe5b43a94d083d7414c11e |
Hashes for login_gmail_selenium-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698fa29bd885e7e2d6fb6299b85d381fce1458060381e03d5d167dcad67695fb |
|
MD5 | e4922db0f50aa9127ffa37d568ea60b1 |
|
BLAKE2b-256 | 6f08d773ec2c1cba9be921df6a317fa3382033eb63a02455a09dee674eccffcf |