https://github.com/s-ayanide/book-finder
Open the Database.py file and add the names of books you want in your library
https://github.com/s-ayanide/book-finder
Last synced: about 2 months ago
JSON representation
Open the Database.py file and add the names of books you want in your library
- Host: GitHub
- URL: https://github.com/s-ayanide/book-finder
- Owner: S-ayanide
- Created: 2018-06-28T08:59:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T09:06:00.000Z (about 8 years ago)
- Last Synced: 2025-02-28T19:09:18.566Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book-Finder
Open the Database.py file and add the names of books you want in your library
Open BookFinder.py file and enter the book you want to search
It will fetch you the book price
--------------------------------------------------------------------------------------------------------------------
def EnterTitle(self):
import sqlite3
Data1=sqlite3.connect('fetcher.db')
c=Data1.cursor()
t=self.t1.text()
c.execute("SELECT Price FROM BOOKDATA WHERE Name='"+t+"';")
rec=c.fetchone()
if rec!=None:
self.pr=rec[0]
self.t2.setText(str(self.pr))
else:
self.t2.setText('Book not found')
----------------------------------------------------------------------------------------------------------------------
Function EnterTitle takes the data writter in text format from the box
Searches and displays it in the Price box below