python - Google Books: How can I import a list of books from the XML file I exported from My Library? -


according library faq, can export bookshelf xml following these instructions:

when viewing bookshelves within 'my library' on google books, select export xml download bookshelf file.

however, when want import list of books must use list of isbn numbers following these instructions:

when viewing bookshelves within 'my library' on google books, click options, select add isbn or issn. enter 1 isbn or issn per line, , click add books button when done.

how can use xml file exported library in order import books (maybe because i'm switching accounts , want transfer library)?

if have python installed, can run script, print out every isbn number found in each xml file in current directory.

import glob xml in glob.glob('*.xml'):     open(xml) f:         line in f:             line = line.strip()             if line.startswith('<value>'):                 # isbn number between <value>...</value> tags.                 print line[7:-8] 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -