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.
Source Distribution
insprio-0.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insprio-0.0.1.tar.gz.
File metadata
- Download URL: insprio-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc62aafbad7ef54ba43be48315518654ee888dd2e86bc9b8d97918b29cb282ae
|
|
| MD5 |
84684edae849d18598a1bee940c158a8
|
|
| BLAKE2b-256 |
cd1f552701034816107cd7d6f138fe03ddbfd71640be09c2d40d75c482919096
|
File details
Details for the file insprio-0.0.1-py3-none-any.whl.
File metadata
- Download URL: insprio-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7a097ceb182eacf097ce8c1d9eab410a740b5fe9374039151d1be3ae93b7157
|
|
| MD5 |
0b946d23c45c3483c7f881c2a604bef8
|
|
| BLAKE2b-256 |
b1de8e1ad7d026e9a5a8699d7f447291bab10ab5898a2ea541fa4321ddc885ed
|