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
#!/bin/bash | |
# Based on information found at the following URLs: | |
# https://stackoverflow.com/questions/46169415/understanding-hsl-to-rgb-color-space-conversion-algorithm | |
# https://community.home-assistant.io/t/controlling-a-bluetooth-led-strip-with-ha/286029/5 | |
# Parameters: | |
# bt_light_control.sh MAC_ADDRESS STATE PARAMETERS | |
# | |
# Turn on: bt_light_control.sh 00:00:00:00:00:00 on |
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 bs4 import BeautifulSoup as soup #used to beautifie the html code | |
import datetime as dt #sum the video's duration time | |
from selenium import webdriver #open webdriver for specific browser | |
from selenium.webdriver.common.keys import Keys #for necessary browser action | |
import time #used for sleep function | |
#line 63 must be modified for different languages | |
#line 35 must be modified for different url | |
times = [] |