{
"info": {
"author": "Eliot Berriot",
"author_email": "contact@eliotberriot.com",
"bugtrack_url": null,
"classifiers": [
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7"
],
"description": "WXR-parser is a very simple parser for Wordpress eXtended RSS files, writtent in Python.\n\nFeed it with a WXR file and it will return data about posts, categories, tags and comments, inside a dictionary, so you can use this data in your own projects.\n\nCompatibility\n=============\n\nWXR-parser has been tested under Python 2.7 and 3.4.\n\nInstallation\n============\n\nThe recommanded install process is using `pip`, which will also handle any dependencies::\n\n pip install wxr-parser\n\nIf you install it manually, you should also install `lxml `_.\n\nUsage\n=====\n\nYou can use the parser with the following instructions::\n\n import wxr_parser\n\n # parse a file\n parsed_data = wxr_parser.parse('path_to_your_wxr.xml')\n\nYou can also parse a string containing WXR data.\n\nOutput\n======\n\nWXR-parser returns a standard Python dictionary, with following keys:\n\n- `site`: data about the website. Not fully implemented.\n- `categories`: categories data (described below)\n- `tags`: tags data (described below)\n- `posts`: posts data (described below)\n\nCategories\n**********\n\nA dictionary of parsed categories, with categories nicenames as keys::\n\n parsed_data['categories']\n\n # output\n {\n 'a-category': {'slug': 'a-category',\n 'title': 'A category'},\n 'another-category': {'slug': 'another-category',\n 'title': 'Another category'},\n 'uncategorized': {'slug': 'uncategorized',\n 'title': 'Uncategorized'}\n }\n\nTags\n****\n\nA dictionary of parsed tags, with tags nicenames as keys::\n \n parsed_data['tags']\n\n # output\n {\n 'another-tag': {'slug': 'another-tag',\n 'title': 'another tag'},\n 'arbitrary-tag': {'slug': 'arbitrary-tag',\n 'title': 'arbitrary tag'},\n 'some-tag': {'slug': 'some-tag',\n 'title': 'Some tag'}\n }\n\nPosts\n*****\n\nA list of dictionaries, each dictionary corresponding to a parsed post::\n \n # get the first parsed post\n parsed_data['posts'][0]\n\n # output\n\n {\n 'categories': ['uncategorized'],\n 'comment_status': 'open',\n 'comments': [{'author': 'Mr WordPress',\n 'author_IP': None,\n 'author_url': 'http://wordpress.org/',\n 'content': 'Hi, this is a comment.
To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.',\n 'date': datetime.datetime(2012, 7, 1, 18, 32, 32),\n 'id': 1}],\n 'content': u'Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!',\n 'creator': 'admin',\n 'guid': u'http://demo.opensourcecms.com/wordpress/?p=1',\n 'id': 1,\n 'link': u'http://demo.opensourcecms.com/wordpress/?p=1',\n 'password': None,\n 'ping_status': 'open',\n 'pub_date': datetime.datetime(2012, 7, 1, 18, 32, 32),\n 'slug': u'hello-world',\n 'status': 'publish',\n 'tags': [],\n 'title': u'Hello world!'\n }\n\n\nChangelog\n=========\n\n0.1 - 12/10/2014\n****************\n\nInitial release.\n\nContributions\n=============\n\nContributions and feedback are welcome. You can fork the project and send me a link to your forked repo so I can merge it.\n\nFeel free to email me at . \n\nLicense\n=======\n\nThe project is licensed under BSD licence.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://code.eliotberriot.com/eliotberriot/wxr-parser",
"keywords": null,
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "wxr-parser",
"package_url": "https://pypi.org/project/wxr-parser/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/wxr-parser/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://code.eliotberriot.com/eliotberriot/wxr-parser"
},
"release_url": "https://pypi.org/project/wxr-parser/0.1/",
"requires_dist": null,
"requires_python": null,
"summary": "A simple Worpdress eXtended RSS (WXR) parser",
"version": "0.1"
},
"last_serial": 1267663,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "8e44b9d0d50ac2a6af067a4821666d1e",
"sha256": "2d478e106f82ca2829fe13111373d50edec1f09f4bf00b1a4bd4d0696ee9430b"
},
"downloads": -1,
"filename": "wxr-parser-0.1.tar.gz",
"has_sig": false,
"md5_digest": "8e44b9d0d50ac2a6af067a4821666d1e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6238,
"upload_time": "2014-10-12T13:57:49",
"url": "https://files.pythonhosted.org/packages/44/52/9b92966db3eb7aded7cb6dbd1a56ae58af41d56d6024da0acb7a6165ae2e/wxr-parser-0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "8e44b9d0d50ac2a6af067a4821666d1e",
"sha256": "2d478e106f82ca2829fe13111373d50edec1f09f4bf00b1a4bd4d0696ee9430b"
},
"downloads": -1,
"filename": "wxr-parser-0.1.tar.gz",
"has_sig": false,
"md5_digest": "8e44b9d0d50ac2a6af067a4821666d1e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6238,
"upload_time": "2014-10-12T13:57:49",
"url": "https://files.pythonhosted.org/packages/44/52/9b92966db3eb7aded7cb6dbd1a56ae58af41d56d6024da0acb7a6165ae2e/wxr-parser-0.1.tar.gz"
}
]
}