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 pytube import YouTube | |
# pip install git+https://github.com/nficano/pytube.git | |
url = 'https://www.youtube.com/watch?v=3jZXXIDXZJ8' | |
video = YouTube(url) | |
print("**********************VIDEO TITLE**********************") | |
print(video.title) | |
print("**********************Thumbnail URL**********************") |
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 moviepy.editor import * | |
clip = VideoFileClip('GIF.mp4') | |
clip = clip.subclip(2, 5) | |
clip.write_gif("GIF.gif") |
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 pyshorteners as psh | |
link = "https://github.com/JayantGoel001" | |
short = psh.Shortener() | |
shorted_url = short.tinyurl.short(link) | |
print(shorted_url) |
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 googletrans import Translator | |
text = ''' | |
J'ai erré seul comme un nuage | |
Qui flotte sur les hautes vallées et collines, | |
Quand tout à coup j'ai vu une foule, | |
Une foule, de jonquilles dorées; | |
Au bord du lac, sous les arbres, | |
flottant et dansant dans la brise. | |
''' |
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 pyjokes | |
jokes = pyjokes.get_jokes(category='all') | |
for i in range(len(jokes)): | |
print(i+1, ".", jokes[i]) |
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 instaloader import Instaloader | |
insta = Instaloader() | |
username = input("Enter the Instagram Account username : ") | |
insta.download_profile(username, profile_pic_only=True) |
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 socket as sk | |
try: | |
hostname = sk.gethostname() | |
ip_address = sk.gethostbyname(hostname) | |
print("HostName : "+hostname) | |
print("IP Address : "+ip_address) | |
URL = input("Enter a URL:") |
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 zipfile as z | |
filename = input() | |
print("Starting Unzip of Folder.") | |
files = z.ZipFile(filename) | |
files.extractall() | |
print("Unzip Files!!!") |
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
# pip install pypng | |
import pyqrcode | |
data = "Hi!! I am Jayant Goel." | |
img = pyqrcode.create(data) | |
img.png("Jayant Goel.png", scale=10) |
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 tkinter import * | |
from time import strftime | |
def clock(): | |
current_time = strftime('%H:%M:%S %p') | |
label.config(text=current_time) | |
label.after(1000, clock) | |