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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size insprio-0.0.1-py3-none-any.whl (5.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size insprio-0.0.1.tar.gz (3.2 kB) | File type Source | Python version None | Upload date | Hashes View |