Skip to content

Instantly share code, notes, and snippets.

!pip install youtube_transcript_api
# -*- coding: utf-8 -*-
from youtube_transcript_api import YouTubeTranscriptApi
from urllib.parse import urlparse, parse_qs
urltext = "https://youtu.be/jzTjCgWlFRU"
args = [urltext]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dauuricus
dauuricus / youtube_search.py
Created November 14, 2022 13:29
Youtube clip search
# coding: UTF-8
import urllib.request
import urllib.parse
import re
import time
import json
from bs4 import BeautifulSoup
words = "ransomware"
keywords = urllib.parse.quote(words)
@dauuricus
dauuricus / youtube_search2.py
Last active November 8, 2022 08:40
youtube search
# coding: UTF-8
import urllib.request
import urllib.parse
import re
import time
words = "ransomware"
#words = "ひろゆき"
keywords = urllib.parse.quote(words)
target = "https://www.youtube.com/results?search_query=" + keywords
@dauuricus
dauuricus / youtube_search.py
Last active October 30, 2022 07:43
youtube search python
# coding: UTF-8
import urllib.request
import urllib.parse
import re
import time
words = "ひろゆき"
keywords = urllib.parse.quote(words)
target = "https://www.youtube.com/results?search_query=" + keywords
video_list_0 = []
@dauuricus
dauuricus / bellingcat4.ipynb
Last active June 30, 2022 05:31
binder notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dauuricus
dauuricus / bellingcat2.ipynb
Created June 25, 2022 06:18
for binder jpyternotebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dauuricus
dauuricus / bellingcat2.ipynb
Created June 23, 2022 08:47
web scraping & translate jupyternotebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.