This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import webbrowser | |
| import time, random | |
| import requests | |
| from bs4 import BeautifulSoup | |
| def get_all_links(url): | |
| """ | |
| Fetches a webpage and extracts all URLs from anchor tags. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| from selenium import webdriver | |
| from selenium.webdriver.edge.service import Service | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.support.wait import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| import time | |
| import os, requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import os | |
| #you feel: | |
| ffmpegPath = '.\ffmpeg.exe'#your ffmpeg | |
| ff = "far.ttf"#your font | |
| path="."#directory movies | |
| #movie-0xFFFFFF-0x000000-300.mp4 | |
| for filename in os.listdir(path): | |
| if (filename.endswith(".mkv")): #or .avi, .mpeg, whatever. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytesseract as tess | |
| from PIL import Image | |
| import glob | |
| path = r"C:\Users\AAAdel\Desktop\Movie" | |
| tess.pytesseract.tesseract_cmd= r"C:\Program Files\Tesseract-OCR\tesseract.exe" | |
| for pic in glob.glob(path+"\\*.jpg"): | |
| img = Image.open(pic) | |
| text= tess.image_to_string(img) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from googlesearch import search | |
| blackfile = open("black_links.txt", 'r') | |
| blacklinks = [line.split(',') for line in blackfile.readlines()] | |
| whitefile = open("white_links.txt", 'r') | |
| whitelinks = [line.split(',') for line in whitefile.readlines()] | |
| def reading(query, link): | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import movieposters | |
| import requests | |
| import glob | |
| from mutagen.mp4 import MP4, MP4Cover | |
| def movie_to_cover(title, fname): | |
| m_title = title[:-4] | |
| print(m_title) |