Giter Site home page Giter Site logo

indie-hackers-quotes's Introduction

Indie-Hackers-Quotes

This software retrieve, random or specific, quotes from https://www.indiehackers.com/.

How to

$ python indiequotes.py ARGS

arguments:

  -h, --help                  , show this help message and exit
  -m N, --max_random N        , max value of random range (default 150)
  -n N, --number_of_quotes N  , number of quotes to show  (default 1)
  -q N, --quote QUOTE_INDEX   , get quote identified by QUOTE_INDEX

if '--quote' is specified than the sw try to retrieve that specific quote. If not specified the sw start by default trying to retrieve one random quote.

As an example: Enter the following command:

  `$ python indiequotes.py`

Running this command will give an output similar to this:

  Quote: #66
  ==========
  "Ideas are worth nothing unless you make it. Test your ideas quickly and keep improving."

  Harry Chen,  Altcademy - $7K/mo
  https://www.indiehackers.com/interview/keeping-things-lean-and-growing-my-online-course-business-583b7d1f8b

Another option is to specify the quote index:

  python indiequotes.py --q 12

This would give the following result:

  Quote: #12
  ==========
  "Don’t look to your competitors for inspiration. Get a sense of your market, but then push past it."

  Diony McPherson,  Paperform - $26K/mo
  https://www.indiehackers.com/interview/how-i-risked-it-all-by-building-a-24k-mo-business-with-my-spouse-69c977f314

indie-hackers-quotes's People

Contributors

anirudhbagri avatar cereal84 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

indie-hackers-quotes's Issues

Request specific quote

Add a feature in order to allow the user to request a specific quote by using an ID (integer).

Quote output format

Improve the way the quote is formatted on standard output.
The fomat should be have:

  • header
  • body.

The header must show the quote number.
The body contains informations like : author, quote, url (reference to the quote), company

Format:

Quote #N

""
, <COMPANY_NAME> -

Example:

QUOTE 42

" Listen to your customers! This turns them into loyal customers. And loyal customers bring you new customers."
Ryan Frahm - Shoppe ($120K/mo)
https://www.indiehackers.com/interview/passing-1m-yr-by-leveraging-the-power-of-word-of-mouth-referrals-33727a5fb4

Add couple of example in README

Add at least couple of examples of script use in README.
One for the random quote search and one for specific quote search.

Split get_random_quote() function

Split in 2 the unique function 'get_random_quote'.
One funcition MUST rendere the quote informations and another one get the response and retrieve the the single informations like:

  • quote
  • author
  • company
  • mrr
  • url
  • quote index

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.