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
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| function clickButton(classname){ | |
| accept_buttons = document.getElementsByClassName(classname) | |
| for(i=0; i<accept_buttons.length; i++){accept_buttons[i].click(); sleep(2000);} | |
| } |
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
| import tweepy | |
| from dotenv import load_dotenv | |
| import os | |
| import logging | |
| import time | |
| load_dotenv() | |
| CONSUMER_KEY = os.environ["CONSUMER_KEY"] |
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
| function check(ele) { | |
| ele.checked = true; | |
| } | |
| x = document.getElementsByName("id"); | |
| x.forEach(element => check(ele)); |
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
| elements = document.getElementsByClassName("r-15ysp7h"); | |
| for (let index = 0; index < elements.length; index++) {elements[index].click()} |
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
| export AIRFLOW_HOME="$(pwd)/airflow-local" | |
| # -p ignores if file already exists | |
| mkdir -p "$(pwd)/airflow-local" | |
| # Install Airflow using the constraints file | |
| AIRFLOW_VERSION=2.4.3 | |
| PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)" | |
| CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt" |
OlderNewer