Skip to content

Instantly share code, notes, and snippets.

View Sorrow446's full-sized avatar

Sorrow446

View GitHub Profile
@Sorrow446
Sorrow446 / oldtonew.py
Created April 5, 2020 03:02
Mega.nz old to new format converter.
#!/usr/bin/env python3
import os
import re
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--url", nargs="+", required=True, help="URL or text filename.")
parser.add_argument("-o", "--output", help="Output text filename.")
args = parser.parse_args()