Introduction It is possible to get your personal data - posts, images, etc out of Facebook as a zipfile. If you ask Facebook for this as JSON data it’s then possible to write some Python to parse this information and eventually upload it into Wordpress.
JSON is a standard for storing data in a human readable format. It’s the modern world’s version of XML. Python comes with a JSON library that will parse the data and turn it into a regular Python dictionary.
A quick set of notes on how to parse command line arguments properly in Python. This uses the argparse module, totally removing any effort on your part when it comes to processing command line switches.