This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Python script to copy a delicious XML file into a mongodb. | |
Essentially saves all attributes from the XML as-is, but I do make the following changes: | |
- Added a "tags" attribute to the saved document that separates the tags into a list | |
- Converted the "time" attribute to a datetime |