Skip to main content

Python3 API wrapper for InspiroBot

Project description

#Inspirobot API

A Python3 api wrapper for InspiroBot

Requirements

  • Python3.5 +
  • Requests

Install

Using PyPi (Pip)

python3 -m pip install inspiro

Using Git

python3 -m pip install git+<GIT_URL>

Manual

git clone <GIT_URL> inspiro_python
cd inspiro_python
python3 -m pip -r requirements.txt
python3 -m pip install .

Usage

Generating a classic Quote Image

import inspirobot  # Import the libary
quote = inspirobot.generate()  # Generate Image
print(quote.url)  # Print the url

Using the mindfullness (flow) API

import inspirobot  # Import the libary
flow = inspirobot.flow()  # Generate a flow object
for quote in flow:
    print(quote.text)

Spamming the mindfullness (flow) API

import inspirobot  # Import the libary
flow = inspirobot.flow()  # Generate a flow object
for i in range(0, 100):
    for quote in flow:
        print(quote.text, quote.image.url)
    flow.new()
    print("-"*50)
HTTP Mode

Does your work/school network use https interception? Mine sure does!

import inspirobot
inspirobot.HTTPS = False

That should fix it

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insprio-0.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

insprio-0.0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page