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 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 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 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 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
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
import pyautogui | |
from tkinter import * | |
win = Tk() | |
win.title("Grab ScreenShot") | |
canvas1 = Canvas(win, width=300, height=300) | |
canvas1.pack() | |
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 plyer import notification | |
title = "Hey Coders" | |
message = "I am Jayant Goel" | |
notification.notify(title=title, message=message, app_icon=None, timeout=10, toast=False) |
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 turtle | |
def curvedPart(): | |
for i in range(200): | |
turtle.right(1) | |
turtle.forward(1) | |
turtle.speed(3) | |
turtle.bgcolor("black") |
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 js2py | |
log = "console.log('Hello World');" | |
pr = js2py.eval_js(log) | |
pr | |
func = '''function add(a,b){ | |
return a+b; | |
}''' |