Beispiel #1
0
 def webquery(self,isbn):
   import book
   from biblio.webquery.xisbn import XisbnQuery
   import biblio.webquery
   a = XisbnQuery()
   try:
     abook = a.query_bibdata_by_isbn(isbn)
     nn = abook.pop()
     self.id=nn.id
     self.isbn=nn.id
     self.title=nn.title
     self.authors=(str(nn.authors)).replace('[','').replace(']','')
     self.abstract=(nn.abstract)
     self.mtype=nn.type
     self.publisher=(nn.publisher)
     self.city=(nn.city)
     self.year=(nn.year)
   except:
     return 1
Beispiel #2
0
#!/bin/env python

from biblio.webquery.xisbn import XisbnQuery
from biblio.webquery.loc import LocQuery
from biblio.webquery.isbndb import IsbndbQuery
from biblio.webquery import isbndb
import zbar

isbnd_key = "QIAZBUIF"

'''Some test code'''
a = XisbnQuery()
print(a.query_bibdata_by_isbn('9780600352815'))

foo=IsbndbQuery(isbnd_key)
book = foo.query_bibdata_by_isbn('0708835783')
nn = book.pop()
nn.id
nn.title


data = ['']
book = foo.query_service("title","Beginning Python",data)
print book