Convert BibTex file to database entries using Python

后端 未结 5 1591
星月不相逢
星月不相逢 2021-02-02 15:41

Given a bibTex file, I need to add the respective fields(author, title, journal etc.) to a table in a MySQL database (with a custom schema).

After doing some initial re

5条回答
  •  春和景丽
    2021-02-02 15:52

    Converting to XML is a fine idea.

    XML exists as an application-independent data format, so that you can parse it with readily-available libraries; using it as an intermediary has no particular drawbacks. In fact, you can usually import XML into a database without even going through a programming language such as Python (although the amount of Python you'd have to write for a task like this is trivial).

    So far as I know, there is no direct, mature bibTeX reader for Python.

提交回复
热议问题