Rename book_results.py to Search-Books/book_results.py


Before executing the file install the required libraries mentioned below.
Install Python 2.7 on Debian Machines. Use respective package managers if you are using the other linux distros.

$ sudo apt-get install python2.7 

Install Build-Essentials:
$ sudo apt-get install build-essential

Install Required libraries to run this program:
$ sudo pip install BeautifulSoup4
$ sudo pip install lxml
$ sudo pip install cssselect

Later you can run the program successfully.

Sample Output:-
1)pradeep@itsprdp:~$ python book_results.py 
Please provide the valid input as python filename.py flipkart <bookname> or as python filename.py crossword <bookname>
	<bookname> would be the title of the book you want to search for

2) pradeep@itsprdp:~$ python book_results.py flipkart 
Please provide the valid input as python filename.py flipkart <bookname> or as python filename.py crossword <bookname>
	<bookname> would be the title of the book you want to search for

3) pradeep@itsprdp:~$ python book_results.py crossword gatsby 
Searching for the book titled 'gatsby 'in Crossword.in .......
.................................................................................................
     Title of the Book        |           Author Name          |      Price in Rs (INR)         
.................................................................................................
Great Gatsby, the |  | 250
Great Gatsby |  | 861
The Great Gatsby | F Scott Fitzgerald | 150
The Great Gatsby | Scott F Fitzgerald | 199
Great Gatsby | Virginia Lee | 688
Jay Gatsby | Frederic P Miller | 3,201
Gatsby Cocktails | Ben Reed | 688
Great Gatsby | F Scott Fitzgerald | 215
El Gran Gatsby/the Great Gatsby (Spanish Edition) … | F Scott Fitzgerald | 691
The Great Gatsby | F Scott Fitzgerald | 646
Gatsby | Amy Sickels | 4,122
Great gatsby | NIL | 209
Gatsby's Girl | Caroline Preston | 967
Gatsby's Vineyard | A E Maxwell | 967
The Great Gatsby: The Great Gatsby (Paperback) … | Richard Lehan | 2,264
Fitzgerald's: The Great Gatsby | Henry D Piper | 5,619
.................................................................................................

4) pradeep@itsprdp:~$ python book_results.py flipkart gandhi
Searching for the book titled 'gandhi' in Flipkart.com ......
.................................................................................................
     Title of the Book        |           Author Name          |      Price in Rs (INR)         
.................................................................................................
Gandhi Before India (Hardcover) | Ramachandra Guha | 899
M. K. Gandhi - An Autobiography Or The Story Of My Experiments With Truth (Paperback) | M K Gandhi | 97
The Story of My Experiment with Truth: The Autobiography (Paperback) | Mohandas Karamchand Gandhi | 350
The Story of My Experiments with Truth : An Autobiography (Paperback) | Mahatma Gandhi | 595
India After Gandhi: The History Of The World's Largest Democracy (Paperback) | Pankaj Mishra | 450
Gandhi: Naked Ambition (Paperback) | Ramachandra Guha | 250
Poor Little Rich Slum (Paperback) | Jad Adams | 252
Business Studies Class-XII (Paperback) | Rashmi Bansal, Deepak Gandhi | 150
An Autobiography: The Story of My Experiments with Truth (Paperback) | Poonam Gandhi | 252
Business Studies (Class - 11) (Paperback) | M. K. Gandhi | 250
My Experiments with Truth (Paperback) | Poonam Gandhi | 190
Gandhi, Nehru, Tagore and Other Eminent Personalities of Modern India (Paperback) | M. K. Gandhi | 199
My Experiments with Truth (Paperback) | Spectrum Editorial Board | 499
My Experiments With Truth : An Autobiography (Paperback) | M. K. Gandhi | 150
Jinnah vs. Gandhi (Hardcover) | Mahatma Gandhi | 450
The Story Of My Experiments With Truth An Autobiography (Paperback) | Roderick Matthews | 250
Hindu Names (Paperback) | M. K. Gandhi | 399
The Story of My Experiments with Truth (Paperback) | Maneka Gandhi | 195
.................................................................................................