This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.8" | |
| services: | |
| db: | |
| container_name: postgres_container | |
| image: postgres | |
| restart: always | |
| environment: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: root | |
| POSTGRES_DB: test_db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hashtag_list = ['travelblog', 'travelblogger', 'traveler'] | |
| # prev_user_list = [] - if it's the first time you run it, use this line and comment the two below | |
| prev_user_list = pd.read_csv('20181203-224633_users_followed_list.csv', delimiter=',').iloc[:,1:2] # useful to build a user log | |
| prev_user_list = list(prev_user_list['0']) | |
| new_followed = [] | |
| tag = -1 | |
| followed = 0 | |
| likes = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from getpass import getpass | |
| def login_twitter(username, password): | |
| driver = webdriver.Firefox() | |
| driver.get("https://twitter.com/login") | |
| username_field = driver.find_element_by_class_name("js-username-field") | |
| password_field = driver.find_element_by_class_name("js-password-field") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var scales = { | |
| 'natural major': [0,2,4,5,7,9,11,12], | |
| 'ionian': [0,2,4,5,7,9,11,12], | |
| 'major': [0,2,4,5,7,9,11,12], | |
| 'chromatic': [0,1,2,3,4,5,6,7,8,9,10,11,12], | |
| 'spanish 8 tone': [0,1,3,4,5,6,8,10,12], | |
| 'flamenco': [0,1,3,4,5,7,8,10,12], | |
| 'symmetrical': [0,1,3,4,6,7,9,10,12], | |
| 'inverted diminished': [0,1,3,4,6,7,9,10,12], | |
| 'diminished': [0,2,3,5,6,8,9,11,12], |