Skip to main content

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. To store the profile with minimum size on disk, WorkerService cache, OptimizationGuide and cache is cleared when quitting driver.

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.profiles.profile import GoogleProfile
from login_gmail_selenium.util.profiles.google_profile import Profile

profile = GoogleProfile(email, password, backup_email)
# profile = Profile(name_profile) If don't need login to google but save driver
# To allow downloads add insecure=True to ChromeProfile
# To handle false email with custom functions, use param false_email_callback
driver = profile.retrieve_driver()
profile.start()
# Do whatever with driver afterward
driver.get('https://www.google.com/')
driver.quit()
...
  1. Add folder extension/ if you want custom extensions for Chrome (.crx or .zip)
  2. The temp folder's content will be generated by the library. Your folder should look like this
/temp
    /profiles
        /profile1
        /profile2
    /blank_profiles
        /blank_profiles1
        /blank_profiles2
/extension
    /custom_extension
        extension1.zip
        extension2.crx
example.py

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.

Metadata

Release files for login-gmail-selenium 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for login-gmail-selenium 1.2.0
File Size Uploaded Provenance Actions
login_gmail_selenium-1.2.0.tar.gz 5.7 MB Without provenance Details for login_gmail_selenium-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for login-gmail-selenium 1.2.0
File Interpreter ABI Platform Actions
login_gmail_selenium-1.2.0-py3-none-any.whl Python 3 none any Details for login_gmail_selenium-1.2.0-py3-none-any.whl

Total release size: 11.4 MB

Release files / login_gmail_selenium-1.2.0.tar.gz

Download URL login_gmail_selenium-1.2.0.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
cda8ba49f497da03b67398dbc890205d8e881fda27cbdc9d2e49b6818a786c88
BLAKE2b-256 checksum
How to use checksums
bc2164cf0fcf546675df61f95d6d1bc8ca3dc5de3124a41a2b3b76c18545ddb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.0

Release files / login_gmail_selenium-1.2.0-py3-none-any.whl

Download URL login_gmail_selenium-1.2.0-py3-none-any.whl
Size 5.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c339da1acb06d48e741855b4563173be5b6e366f42348949052705822f249e53
BLAKE2b-256 checksum
How to use checksums
b946a2a927079170f4bcbfdd36e183669029a10f78bf6686d29eba111a33b40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.0

Security for login-gmail-selenium 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page