Created
November 10, 2021 19:43
-
-
Save jonasryberg/4d48f95d31740563a557746a601332d7 to your computer and use it in GitHub Desktop.
This file contains 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
# Takes a textfile and urlifys the lines | |
import fileinput | |
import urllib.parse as parse | |
with fileinput.input() as file: | |
for line in file: | |
print(parse.quote(line)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment