Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoBaena authored Sep 29, 2022
1 parent 8a8813f commit 7f8d936
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MBTI PNG downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
# We get the correspondent letter from the cu rrent digit binary number
fourLetters = fourLetters[:i] + letters[i][int(b[i])] + fourLetters[i+1:]
i += 1

print(fourLetters)

# Getting PNGs yay
# url = "https://www.16personalities.com/images/types/" + fourLetters + ".png"
# r = requests.get(url, allow_redirects = True)
# open(fourLetters.upper() + ".png", 'wb').write(r.content)
url = "https://www.16personalities.com/images/types/" + fourLetters + ".png"
r = requests.get(url, allow_redirects = True)
open(fourLetters.upper() + ".png", 'wb').write(r.content)

persType += 1

0 comments on commit 7f8d936

Please sign in to comment.