python wrapper for displaypurposes.com's api
Project description
DisplayPurposes
DisplayPurposes is a Python library for programmatically interacting with the website https://displaypurposes.com
Installation
Use the package manager pip to install displaypurposes
pip install api-display-purposes
Usage
from apidisplaypurposes import displaypurposes
# obtain tags similar to #happy
displaypurposes.tag('happy')
# obtain 10 tags similar to #happy
displaypurposes.tag('happy', limit=10)
# obtain 20 tags similar to #happy emulating firefox GET requests
displaypurposes.tag('happy', limit=20, browser='firefox')
# obtain tags that share an edge with #happy
displaypurposes.graph('happy')
# obtain tags that share an edge with #happy emulating firefox GET requests
displaypurposes.graph('happy', browser='firefox')
# obtain the 20 most popular tags used within the specified window
displaypurposes.map(-118.77636909484865,
33.23850805662313,
-117.04052925109865,
35.10400554120783,
zoom=14,
limit=20)
# obtain the 20 most popular tags used within the specified window emulating chrome GET requests
displaypurposes.map(-118.77636909484865,
33.23850805662313,
-117.04052925109865,
35.10400554120783,
zoom=14,
limit=20,
browser='chrome')
Acknowledgement
Of course this project could not exist without the work of the makers of https://displaypurposes.com. Thank you for the work you put into this useful tool.
License
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
Built Distribution
File details
Details for the file api-display-purposes-0.0.3.tar.gz
.
File metadata
- Download URL: api-display-purposes-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450611527ef43afbf02c72a9858e114d3faeeb797649910831812bc53eb7292a |
|
MD5 | 032fc7be98c1d93ab8901c238f218030 |
|
BLAKE2b-256 | 6c9f40dafa943f471d5484968c5c2a63103606ba7f4921f93bc6ec1382683dc2 |
File details
Details for the file api_display_purposes-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: api_display_purposes-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcec4bc1b6a6b4f4f5080b9900ebe9ebc8c6adb81c0795afaf9588b5270df08e |
|
MD5 | b7794866a8a1a84ed2923ad3003e3b26 |
|
BLAKE2b-256 | dd3904396eec29f6d08c8e0524e7f15934b2a636d11c176accd41126f608f990 |