-
-
Save nvanderperren/b8c93e014b2d64f737ebefe127976f7b to your computer and use it in GitHub Desktop.
convert a list of urls to a yaml list for archiving with Browsertrix
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
from sys import argv | |
from argparse import ArgumentParser | |
with open(argv[1]) as input: | |
lines = input.readlines() | |
input.close() | |
with open(argv[1], 'w') as output: | |
for line in lines: | |
output.write(' - ' + line) | |
output.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment