Skip to content

tapankavasthi/quoteporn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Quote Porn

Overview

Quote Porn is a prototype of a simple quote engine. It provides REST APIs for light-weight integration with other services. It has been created to satisfy your hard-core desire for daily motivation. If your mind craves for a quick get-away to hear witty statements from the celebrities, then quoteporn is the way to go.

How It Works

As of now, Quote Porn selects a random quote message from its Quote Pool.

REST APIs

  • Getting Motivational Quotes:

    HTTP Method: GET

    Endpoint: https://quoteporn.xyz/

    Sample Usage:

    import requests
    
    url = "https://quoteporn.xyz/"
    
    headers = {
        'User-Agent': "PostmanRuntime/7.15.0",
        'Accept': "*/*",
        'Cache-Control': "no-cache",
        'Postman-Token': "042f2fd1-c725-4494-97a1-5d4d72d8cf55,57bad808-b1e6-44cc-abb8-d2c28d9deeaf",
        'Host': "quoteporn.xyz",
        'accept-encoding': "gzip, deflate",
        'Connection': "keep-alive",
        'cache-control': "no-cache"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
  • Getting Celebrity Quotes: HTTP Method: GET

    Endpoint: https://quoteporn.xyz/

    Sample Usage:

    import requests
    
    url = "https://quoteporn.xyz/tv_series"
    
    headers = {
        'User-Agent': "PostmanRuntime/7.15.0",
        'Accept': "*/*",
        'Cache-Control': "no-cache",
        'Postman-Token': "3050d723-05f2-4427-89b6-fb95e91f4768,4e8acd8a-3627-47a1-b680-83ae3efe3bc8",
        'Host': "quoteporn.xyz",
        'accept-encoding': "gzip, deflate",
        'Connection': "keep-alive",
        'cache-control': "no-cache"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)

LPT (Life Pro Tip)

  • Bookmark
    As usual, one of the advantage of GET requests is that they can be bookmarked for quick access.

  • Shell Alias
    If you are a CLI fan, you can save it as a shell alias.

$ cat ~/.bashrc
alias motivate="
curl -X GET \
  https://quoteporn.xyz/tv_series \
  -H 'Accept: */*' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Host: quoteporn.xyz' \
  -H 'Postman-Token: 3050d723-05f2-4427-89b6-fb95e91f4768,0c561954-0e60-40c4-a431-3d0e30a1af4f' \
  -H 'User-Agent: PostmanRuntime/7.15.0' \
  -H 'accept-encoding: gzip, deflate' \
  -H 'cache-control: no-cache';
echo"
$ . ~/.bashrc
$ motivate
"Caring makes you weak. If they think you care, they\u2019ll walk all over you. - Suits"

Message from the Creator

Creator of the Quote Porn says -

Use it when:

  • You are stuck on something in code, and need a push.
  • Your coffee ain't caffeinated enough for your dark-theme terminal.
  • You need a funny or motivational "Me" time.
  • You're bored, while your manager reminded you to send a daily update, yet again.
  • Your dog ain't talking to you. Your girlfriend is asking you for more time. Your investor is grilling you without giving money, or you're having a constipation. Trust me, it works.

About

Daily dose of quotes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published