import requests
from bs4 import BeautifulSoup


class GoodReads(object):
    def __init__(self):
        print "Starting..."

    def get_quotes(self, url):
        r = requests.get(url)
        soup = BeautifulSoup(r.text, "lxml")
        quotes = [quote.text.strip().split("\n")[0] for quote in soup.findAll('div', {'class': 'quoteText'})]
        return quotes


if __name__ == '__main__':
    suffix = ''
    print "Welcome! Choose the option to proceed"
    choice = input("1. Popular\n2. Recently added")
    if choice == 2:
        suffix = 'recently_added'
    url = 'https://www.goodreads.com/quotes/{}'.format(choice)
    scraper = GoodReads()
    for quote in scraper.get_quotes(url):
        print quote

import requests
from bs4 import BeautifulSoup

class GoodReads(object):
    def __init__(self):
        print "Starting..."

    def get_quotes(self, url):
        r = requests.get(url)
        soup = BeautifulSoup(r.text, "lxml")
        quotes = [quote.text.strip().split("\n")[0] for quote in soup.findAll('div', {'class':'quoteText'})]
        return quotes


if __name__ == '__main__':
    url = 'https://www.goodreads.com/quotes'
    scraper = GoodReads()
    for quote in scraper.get_quotes(url):
        print quote

--- 
+++ 
@@ -1,5 +1,6 @@
 import requests
 from bs4 import BeautifulSoup
+
 
 class GoodReads(object):
     def __init__(self):
@@ -8,12 +9,17 @@
     def get_quotes(self, url):
         r = requests.get(url)
         soup = BeautifulSoup(r.text, "lxml")
-        quotes = [quote.text.strip().split("\n")[0] for quote in soup.findAll('div', {'class':'quoteText'})]
+        quotes = [quote.text.strip().split("\n")[0] for quote in soup.findAll('div', {'class': 'quoteText'})]
         return quotes
 
 
 if __name__ == '__main__':
-    url = 'https://www.goodreads.com/quotes'
+    suffix = ''
+    print "Welcome! Choose the option to proceed"
+    choice = input("1. Popular\n2. Recently added")
+    if choice == 2:
+        suffix = 'recently_added'
+    url = 'https://www.goodreads.com/quotes/{}'.format(choice)
     scraper = GoodReads()
     for quote in scraper.get_quotes(url):
         print quote
Allow user to get popular or new quotes
