Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Samuel Taiwo Leumastai

🏠
Working from home
View GitHub Profile
@Leumastai
Leumastai / youtube_video_scraper.py
Last active November 14, 2021 01:44
Script to scrape adn download youtube video
View youtube_video_scraper.py
#Uncomment code if you're running virtually
""" %%capture
import sys
!pip install selenium
#!apt-get update # to update ubuntu to correctly run apt install
!apt install chromium-chromedriver
!cp /usr/lib/chromium-browser/chromedriver /usr/bin
sys.path.insert(0,'/usr/lib/chromium-browser/chromedriver') """
pip install pytube==11.0.1
@Leumastai
Leumastai / image_scraper.py
Created November 8, 2021 01:42
Script to scrape images from google images
View image_scraper.py
#Uncomment the code below if running on Google Colab
""" %%capture
import sys
!pip install selenium
#!apt-get update # to update ubuntu to correctly run apt install
!apt install chromium-chromedriver
!cp /usr/lib/chromium-browser/chromedriver /usr/bin
sys.path.insert(0,'/usr/lib/chromium-browser/chromedriver') """