ISBN -> bookdata Lookup to fill in a database

后端 未结 5 1927
情歌与酒
情歌与酒 2021-01-03 13:37

Ok, I wanting to database a small library.

I\'ve only had limited experience with databases, and none with querying from a webserver.

I\'m going to want to r

5条回答
  •  梦毁少年i
    2021-01-03 14:11

    You can use the MARC21 XML from the Library of Congress.

    I did the same thing as you, building a database to house my library. Scanning in the ISBN collects the data from this URL http://z3950.loc.gov:7090/voyager?version=1.1&operation=searchRetrieve&query=YOUR_ISBN&maximumRecords=1

    The response data then fills in a form with all the data. You don't need an account, just that URL.

    The response comes in XML (as mentioned), and you can parse from there using whatever language you want (my choice happens to be PHP).

提交回复
热议问题