16 lines
434 B
Python
Executable File
16 lines
434 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# converts youtube subscriptions export .xml to simple text file
|
|
|
|
with open('subscription_manager', 'r', encoding='utf-8') as f:
|
|
while f:
|
|
line = f.readline()
|
|
if not 'channel_id' in line:
|
|
continue
|
|
|
|
idpos = line.find('channel_id=') + len('channel_id=')
|
|
|
|
channel_id = line[idpos:idpos + len('UC3Y4vKAzTCqSdOt0ZeYWvTg')]
|
|
print('https://www.youtube.com/channel/' + channel_id)
|