Skip to content

Instantly share code, notes, and snippets.

@jonasryberg
Created November 10, 2021 19:43
Show Gist options
  • Save jonasryberg/4d48f95d31740563a557746a601332d7 to your computer and use it in GitHub Desktop.
Save jonasryberg/4d48f95d31740563a557746a601332d7 to your computer and use it in GitHub Desktop.
# 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