()
| 10 | from urllib.parse import parse_qs |
| 11 | |
| 12 | def load_youtube_api_key(): |
| 13 | try: |
| 14 | return open('youtube_api_key.txt', 'r').read().strip() |
| 15 | except: |
| 16 | print('Add a file called youtube_api.txt and insert a youtube API key.') |
| 17 | print('A youtube API key can be obtained at: https://console.developers.google.com.') |
| 18 | exit(1) |
| 19 | |
| 20 | def get_number_of_lines(file_name): |
| 21 | with open(file_name, 'r') as f: |