12 lines
424 B
Python
12 lines
424 B
Python
|
# We can't proceed automatically by using `requests` Python module because https://socialblade.com/youtube/top/country/fr/mostsubscribed is protected by CloudFlare.
|
||
|
|
||
|
with open('mostsubscribed.html') as f:
|
||
|
lines = f.read().splitlines()
|
||
|
|
||
|
PREFIX = ' <a href = "/youtube/channel/'
|
||
|
|
||
|
for line in lines:
|
||
|
if PREFIX in line:
|
||
|
channelId = line.split(PREFIX)[1].split('">')[0]
|
||
|
print(channelId)
|