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 time | |
from datetime import datetime as dt | |
start_time = 8 | |
end_time =18 | |
def calculate_sleep_time(): | |
if dt(dt.now().year, dt.now().month, dt.now().day, start_time) >= dt.now(): | |
print("if block") | |
diff = dt(dt.now().year, dt.now().month, dt.now().day, start_time)-dt.now() |
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 piexif | |
import os | |
from PIL import Image | |
Copyright = "Paresh Sawant" # add name of copyright holder | |
Artist = "Paresh Sawant" # add name of attist | |
quality = 70 | |
def get_images(path): |
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
let Youtube = require('./youtube'); | |
let playlist1 = new Youtube(); | |
let listId = 'PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_'; | |
playlist1.parsePlaylist(listId).then(function(res) { | |
console.log(res); //list of videos in youtue playlist | |
}).catch(function(error) { | |
console.log(error); | |
}); |
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
/* | |
You need node installed on your system for code to run | |
*/ | |
var m_url = require('url'); | |
function parseUrl(value) { | |
m_web_url = m_url.parse(value, true); | |
m_video = m_web_url.query.v; |