# 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 = ' ')[0] print(channelId)