Coder Social home page Coder Social logo

rupkunsde002's Introduction

Instructions

Requirement:

virtualenv==15.1.0

Instructions to set-up:

git clone [email protected]:rupamk/RUPKUNSDE002.git
cd RUPKUNSDE002
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Running Sample:

python TopQuotes/Quotes.py 

Sample Output:

>>(venv) Rupams-MacBook-Pro:RUPKUNSDE002 rupamkundu$ python TopQuotes/Quotes.py 
-------------------------------------------------
---------Authentication to Goodreads.com---------
-------------------------------------------------
Please Enter your GoodReads.com email address:[email protected]

Please Enter your GoodReads.com password:

Authenticated!! You are now logged in!
-------------------------------------------------------
Check Mark_Twain_top_quotes.json in ./TopQuotes/Data/ 
-------------------------------------------------------

Top 10 Quotes of Mark Twain
********************************************************
Quote 1:If you tell the truth, you don't have to remember anything.”    ―      Mark Twain  

********************************************************
Quote 2:Good friends, good books, and a sleepy conscience: this is the ideal life.”    ―      Mark Twain  

********************************************************
Quote 3:Whenever you find yourself on the side of the majority, it is time to reform (or pause and reflect).”    ―      Mark Twain  

********************************************************
Quote 4:The man who does not read has no advantage over the man who cannot read.”    ―      Mark Twain  

********************************************************
Quote 5:Never put off till tomorrow what may be done day after tomorrow just as well.”    ―      Mark Twain  

********************************************************
Quote 6:′Classic′ - a book which people praise and don't read.”    ―      Mark Twain  

********************************************************
Quote 7:I have never let my schooling interfere with my education.”    ―      Mark Twain  

********************************************************
Quote 8:The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.”    ―      Mark Twain  

********************************************************
Quote 9:A lie can travel half way around the world while the truth is putting on its shoes.”    ―      Mark Twain  

********************************************************
Quote 10:Never tell the truth to people who are not worthy of it.”    ―      Mark Twain  

********************************************************

File Storage Format

Data is stored as "json" format inside ./GetFbPost/Data/ . JSON format provides easy parsing, lightweight and fast, and offers easy human readable format. The data shown above is stored as "Top_expedia_Facebook_Post.json":

Quotes By:Mark Twain    
0    
Content    "If you tell the truth, you don't have to remember anything.”    ―      Mark Twain  "
Author    "Mark Twain"
1    
Content    "Good friends, good books, and a sleepy conscience: this is the ideal life.”    ―      Mark Twain  "
Author    "Mark Twain"
2    
Content    "Whenever you find yourself on the side of the majority, it is time to reform (or pause and reflect).”    ―      Mark Twain  "
Author    "Mark Twain"
3    
Content    "The man who does not read has no advantage over the man who cannot read.”    ―      Mark Twain  "
Author    "Mark Twain"
4    
Content    "Never put off till tomorrow what may be done day after tomorrow just as well.”    ―      Mark Twain  "
Author    "Mark Twain"
5    
Content    "′Classic′ - a book which people praise and don't read.”    ―      Mark Twain  "
Author    "Mark Twain"
6    
Content    "I have never let my schooling interfere with my education.”    ―      Mark Twain  "
Author    "Mark Twain"
7    
Content    "The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.”    ―      Mark Twain  "
Author    "Mark Twain"
8    
Content    "A lie can travel half way around the world while the truth is putting on its shoes.”    ―      Mark Twain  "
Author    "Mark Twain"
9    
Content    "Never tell the truth to people who are not worthy of it.”    ―      Mark Twain  "
Author    "Mark Twain"

Run Unit Test:

>>(venv) Rupams-MacBook-Pro:RUPKUNSDE002 rupamkundu$ python TopQuotes/Test_quotes.py
-------------------------------------------------
--------Unit Testing Framework: quotes.py--------
-------------------------------------------------
Please provide an author name properly.
.Please provide a Link properly
..Empty email! please provide a proper email!
.Empty password! please provide a proper password!
.Name cannot contain Numbers! Enter proper author name !
.Name cannot contain Numbers! Enter proper author name !
.Number of quotes should be >=1
.Number of quotes should be <100
..-------------------------------------------------------
Check inside  in ./TopQuotesGUI/Data/ 
-------------------------------------------------------
..HTTPSConnectionPool(host='www.xxxxxxxxxxxs.com', port=443): Max retries exceeded with url: /quotes/search?&q=mark+twain&commit=Search (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x104a99dd0>: Failed to establish a new connection: [Errno 61] Connection refused',))
..Invalid URL 'quotes/search?&commit=Search&page=2&q=Mark Twain': No schema supplied. Perhaps you meant http://quotes/search?&commit=Search&page=2&q=Mark Twain?
.
----------------------------------------------------------------------
Ran 15 tests in 3.739s

OK

To Exit VirtualEnv:

deactivate

rupkunsde002's People

Contributors

rupamk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.