首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 导入Discogs XML转储到一个SQL数据库的Python程序

导入Discogs XML转储到一个SQL数据库的Python程序

资 源 简 介

This is a python program for importing the discogs data dumps found at http://www.discogs.com/data/ into a PostgreSQL database. MySQL or other databases are not supported at the moment, but you are welcome to submit a patch. Steps to import the datadumps: Download and extract the data dumps Create the empty database: createdb -U {user-name} discogs Import the database schema: psql -U {user-name} -d discogs -f discogs.sql The XML data dumps often contain control characters and do not have root tags. To fix this run "fix-xml.py release", where release is the release date of the dump, for example 20100201 Finally import the data with "python discogsparser.py release", where release is the release date of the dump, for example 20100201

文 件 列 表

discogsartistparser.py
discogslabelparser.py
discogsparser.py
discogsreleaseparser.py
discogs.sql
fix-xml.py
model.py
postgresexporter.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP