Initial
This commit is contained in:
14
python/text/youtube_subscriptions_render.py
Executable file
14
python/text/youtube_subscriptions_render.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# 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)
|
||||
Reference in New Issue
Block a user