Skip to content

Instantly share code, notes, and snippets.

View sulianov's full-sized avatar

Slava Ulianov sulianov

  • Czech Republic
View GitHub Profile
@sulianov
sulianov / olb-logout-from-all-pages.py
Last active May 3, 2019 19:22
Logout from all screens (v.4)
"""
In order to avoid register device screen this needs to be run under Google Account in the browser where particular user is registered (see options of webdriver).
Logout from:
Disclaimer
Dashboard
Deposits
Checking details
CD details
Loans
"""
Check for text equivalents on the Login page, SMS Code page, Password Reset page, Password Reset Success screen.
"""
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from colorama import Fore
from colorama import Style
import time
@sulianov
sulianov / spotify-tracks-to-google-music-tracks.py
Last active December 5, 2021 14:34
Using Selenium+Python sign in to Spotify, grab liked tracks, sign in to Google Music, add Spotify tracks if missing.
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.implicitly_wait(10)
#open spotify
driver.get('https://open.spotify.com/collection/tracks')