Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nvanderperren
Last active February 11, 2021 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvanderperren/b8c93e014b2d64f737ebefe127976f7b to your computer and use it in GitHub Desktop.
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
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