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 requests | |
import os | |
import time | |
from urllib.parse import urlparse | |
def downloadImage(url, filePath): | |
try: | |
response = requests.get(url) | |
if response.status_code == 200: | |
with open(filePath, 'wb') as f: |
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
### Keybase proof | |
I hereby claim: | |
* I am lyricalpaws on github. | |
* I am lyricalpaws (https://keybase.io/lyricalpaws) on keybase. | |
* I have a public key whose fingerprint is 2AA7 745C AC2F 14C2 DB45 854D 729C 16E3 F1CF 7713 | |
To claim this, I am signing this object: |
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
# Importing modules for the program. | |
import random | |
import sys | |
# Setting the characters that the generator can use when making passwords. | |
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-!?$' | |
# Asks user how long each password should be, and requires an input. | |
length = input("Password length?\n> ") |
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
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |