<jupyter_start><jupyter_text>---title: "Break with youtube song"author: "TACT"date: 2019-04-20description: "-"type: technical_notedraft: false---<jupyter_code>import webbrowser
import time
song_list =[
    "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
    "https://www.youtube.com/watch?v=euCqAq6BRa4",
    "https://www.youtube.com/watch?v=UtF6Jej8yb4",
    "https://www.youtube.com/watch?v=nYh-n7EOtMA",
    "https://www.youtube.com/watch?v=J1OsKJW51HY",
]
def break_timer(interval):
    for i in song_list:
        time.sleep(interval)
        print('time to take brake')
        webbrowser.open(i)
    
break_timer(5)<jupyter_output>time to take brake
time to take brake
time to take brake
{'fraction_non_alphanumeric': 0.15007215007215008, 'fraction_numerical': 0.02886002886002886, 'mean_word_length': 4.140740740740741, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '666208', 'license': 'MIT', 'n_tokens_mistral': 289, 'n_tokens_neox': 271, 'n_words': 43, 'path': 'docs/python/basics/break-with-youtube-song.ipynb', 'repo_name': 'mmblack4/mynotes', 'size': '693'}