{"id":16135296,"url":"https://github.com/xnuinside/google2fact","last_synced_at":"2025-04-06T16:18:14.855Z","repository":{"id":116643545,"uuid":"146454032","full_name":"xnuinside/google2fact","owner":"xnuinside","description":"google 2-Step Verification login macros with selenium (based on Backup Codes)","archived":false,"fork":false,"pushed_at":"2018-08-28T13:50:31.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T22:17:38.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xnuinside.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-28T13:45:52.000Z","updated_at":"2024-12-25T12:06:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a66bf640-39f2-46e7-8ce6-07a0b576b4df","html_url":"https://github.com/xnuinside/google2fact","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"813a944ee99100ff06912f452df6a8b483db8700"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fgoogle2fact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fgoogle2fact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fgoogle2fact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fgoogle2fact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xnuinside","download_url":"https://codeload.github.com/xnuinside/google2fact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509241,"owners_count":20950232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T23:06:51.602Z","updated_at":"2025-04-06T16:18:14.829Z","avatar_url":"https://github.com/xnuinside.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"google2fact\n_____________________\n\nWhat is it for?\n\nIt's a little part of selenium macros / test what keep a google 2 auth based on back ups codes.\n\nSo you need just to get your backup codes - and you can automate routine step\nwith selenium\n\n\nHow does it work::\n\n    gif\n\nPrerequisites::\n\n    selenium\n\nTested with versions::\n\n    selenium==3.14.0\n\n    chromedriver 2.41 for mac\n    (https://chromedriver.storage.googleapis.com/index.html?path=2.41/)\n\nIt's a set of python scripts provided to work with google2fact auth\n\nFor correct script's work you need to set environment variables::\n\n    export GMAIL=your@gmail.com\n    export GMAIL_PASSWORD=your_password\n    export GMAIL_CODES=path_to_your_file_with_codes.txt\n\nYou can add them to ~/.bash_profile to avoid manually setting this variables\n\nIf you don't like this way - just open google2fact.py and change this::\n\n    user_mail = getenv('GMAIL')\n    password = getenv('GMAIL_PASSWORD')\n\nto your password and account\n\nAnd inside read_codes.py::\n\n    codes_file = os.path.join(tmp_path, os.environ(\"GMAIL_CODES\"))\n\n\nTo use::\n\n  from google2fact import google2fact\n\n  google2fact.get_auth(driver)\n\n# driver - it's A selenium driver object, what usually initialised with::\n\n    browser = webdriver.Chrome(executable_path=\"path/to/your/chromedriver\")\n\n\nBackup codes file\n_________________\n\n\nGet Backup codes for your account with 2-Step Verification:\n\nhttps://myaccount.google.com/u/1/signinoptions/two-step-verification:\n\nBackup codes --\u003e SHOW CODE --\u003e DOWNLOAD\n\nIf no codes exist - click GET NEW CODES and when --\u003e DOWNLOAD\n\nPut you file Backup-codes-{youraccount}.txt in your GMAIL_CODES env\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnuinside%2Fgoogle2fact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnuinside%2Fgoogle2fact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnuinside%2Fgoogle2fact/lists"}