Download any video from supported sites by youtube-dl with IDM as downloader
- Python 3.x
- Internet Download Manager
- youtube_dl
- idm
youtube-dl -f best --ignore-errors --no-mtime --embed-thumbnail -o %(title)s.%(ext)s --merge-output-format mp4 --external-downloader aria2c --external-downloader-args "-c -j 16 -x 16 -s 16 -k 2M" URL
yt-dlp -f best -c --ignore-errors --no-mtime --embed-subs --embed-thumbnail -o %(title)s.%(ext)s --add-metadata --merge-output-format mp4 --downloader aria2c --downloader-args "-c -j 16 -x 16 -s 16 -k 2M" URL
from dataclasses import dataclass, replace
import praw
from praw.models import MoreComments
import re
from typing import List, Union
reddit = praw.Reddit(client_id=",
client_secret="",
password="",
| from typing import Any, Optional | |
| from webdriver_manager.chrome import ChromeDriverManager | |
| from selenium.webdriver.chrome.service import Service | |
| from selenium.webdriver.chrome.options import Options | |
| from selenium.webdriver import Chrome | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import TimeoutException, NoSuchElementException |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>404</title> | |
| <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap"> | |
| <style> | |
| body { |
| ef508f9670e97f058767bd31373ab2d1832c634d |