This file contains 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 requests, random | |
from bs4 import BeautifulSoup | |
import smtplib | |
#Function to generate a random quote. | |
def random_quote(url): | |
conn = requests.get(url) | |
soup = BeautifulSoup(conn.content,'html.parser') | |
quotes = soup.find_all('a', attrs={"title": "view quote"}) | |
quotesList = [] |
This file contains 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,requests,zipfile, io | |
from bs4 import BeautifulSoup | |
def subtitles_downloader(): | |
try: | |
# Get Movie Name For Subtitles | |
movie_name = input("Enter Movie Name:") | |
#replacing spaces with hyphen to get valid link |
NewerOlder