def bookStoredOnBookmate(self): req = HTTPHandler("BookmateAPICookie") booksList = req.getBookmateBooks() for book in booksList: if ( book["document"]["title"].encode("utf-8") == self.title and book["document"]["authors"].encode("utf-8") == self.author ): return True return False