Skip to content

Instantly share code, notes, and snippets.

@mgebundy
mgebundy / import_to_mongo.py
Created April 12, 2019 01:49 — forked from robballou/import_to_mongo.py
Import delicious bookmark XML to mongodb
#!/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