This module will help you scrape youtube without the official youtube api and without selenium.
With this module you can:
pip3 install scrapetube
Here's a few short code examples.
import scrapetube
videos = scrapetube.get_channel("UCCezIgC97PvUuR4_gbFUs5g")
for video in videos:
print(video['videoId'])
import scrapetube
videos = scrapetube.get_playlist("PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU")
for video in videos:
print(video['videoId'])
import scrapetube
videos = scrapetube.get_search("python")
for video in videos:
print(video['videoId'])