GithubHelp home page GithubHelp logo

wont convert for me. about jiphy HOT 5 OPEN

timothycrosley avatar timothycrosley commented on June 28, 2024
wont convert for me.

from jiphy.

Comments (5)

gh-doot avatar gh-doot commented on June 28, 2024

also the code is

#Packages
import transcrypt
import jiphy
import os
from os import system, name
import shutil
from tqdm import tqdm
import time
import requests
#System Commands
#THEY WERE A FAILURE! PLEASE DO NOT USE! THEY WILL NOT DO ANYTHING!
#def createfile(filename, filedata, var):
#    with open(filename, 'w') as var:
#        var.write(filedata)
#        print('Created file ' + filename + ' with ' + filedata + " and it's variable name is" + var + '.')
#def deletefile(path):
#    os.remove(path)
#def deletedirectory(path):
#    os.rmdir(path)
#def createdirectory(path):
#    os.mkdir(path)
#def movefile(file, folder):
#    shutil.move(file, folder)
#def existsfile(file):
#    os.path.isfile(file)
#def existsdir(folder):
#    os.path.isdir(folder)
#Variables
readme = 'README.txt'
source = "ProjectFiles.rar"
destination = "Apps"
#README Creation
if os.path.isfile(readme) == False:
    with open(readme, 'w') as fp:
        fp.write("! Please credit ThisIsACoolBoy (Zayan The Minecraft Coder and Gamer in YT) also note this only works in WiFi. !")
else:
    pass
#Custom Commands
def cls(sleeptime):
    time.sleep(sleeptime)
    if name == 'nt':
        _ = system('cls')
    else:
        _ = system('clear')    
#def directory():
#    if name == 'nt':
#        _ = system('dir/s')
#    else:
#        _ = system('ls')
#Below is part of the troll.
def finished(message, author):
    print(message)
    print('And is made by ' + author + '.')
# This was only for the youtube video.
# Activate if you want...  
#PART 1 (Fetching requests, absolutely fake.)
print('Fetching request man UuU')
with tqdm(total=100) as pbar:
    for i in range(100):
        time.sleep(0.01)
        pbar.update(1)
print('Sending requests!')
with tqdm(total=1000,unit='KB') as pbar:
    for i in range(1000):
        time.sleep(0.001)
        pbar.update(1)        
#PART 2 (Real installation!)
chunk_size = 1024
url = "https://drive.google.com/uc?export=download&id=1MlUkK7Ce-H8hW1t6rTjgXEBzDkLY-dyS"
r = requests.get(url, stream = True)
total_size = int(r.headers['content-length'])
with open("ProjectFiles.rar", 'wb') as f:
    for data in tqdm(iterable=r.iter_content(chunk_size=chunk_size), total = total_size/chunk_size, unit='KB'):
        f.write(data)
#PART 3 (Download.)        
print('Installation Complete! Now downloading!')
if os.path.isdir(destination) == True:
    if os.path.isfile(destination + '/' + source) == True:
        os.remove(destination + '/' + source)
    else:
        os.rmdir(destination)
        os.mkdir(destination)
        shutil.move(source, destination)
        cls(3)
if os.path.isdir(destination) == False:
    os.mkdir(destination)
    shutil.move(source, destination)
if os.path.isfile(destination + '/' + source) == True:
    print('Successfully downloaded!')
    print('Please wait while we create the logs!')
    with open('logs.txt', 'w') as log:
        log.write('| Hey! | ')
        log.write('Install success?: True | ')
        log.write('Passed?: True | ')
        log.write('Is not 3rd party?: True | ')
        log.write('Is given by zayan kiddy?: True | ')
        log.write('Is having README?: True | ')
        log.write('Ís using windows?: True | ')
        log.write('Installing repository files... | ')
        log.write('Installation passed?: True | ')
        log.write('Is new?: True | ')
        log.write('Is well known and is from zayan kiddy?: True for zayan kiddy and false for well known. | ')
        log.write('CODE: 0x817271 | ')
        log.write('If you dont know what the code means. Ask zayan kiddy. | ')
else:
    print('Failed!')
    with open('logs.txt', 'w') as log:
        log.write('| Hey! | ')
        log.write('Install success?: False | ')
        log.write('Passed?: False | ')
        log.write('Is not 3rd party?: True | ')
        log.write('Is given by zayan kiddy?: True | ')
        log.write('Is having README?: True | ')
        log.write('Ís using windows?: null | ')
        log.write('Installing repository files... | ')
        log.write('Installation passed?: False | ')
        log.write('Is new?: True | ')
        log.write('Is well known and is from zayan kiddy?: True for zayan kiddy and false for well known. | ')
        log.write('CODE: 0x000001 | ')
        log.write('If you dont know what the code means. Ask zayan kiddy. | ')
finished('Download has been finished, See the result in the folder the python file was, the folder the result is on is Apps', 'zayan kiddy')
print('Before we go... Let us do something please..')
print('hah just kidding bro.')
cls(5)
print('...')
cls(5)
print('Please wait, We will shortly bring data...')

from jiphy.

gh-doot avatar gh-doot commented on June 28, 2024

i know.. its big,

from jiphy.

retsimx avatar retsimx commented on June 28, 2024

You might have a unicode problem fren.

from jiphy.

retsimx avatar retsimx commented on June 28, 2024

15 mins w/o an answer yet.

from jiphy.

gh-doot avatar gh-doot commented on June 28, 2024

How could I fix that

from jiphy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.