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 displaypurposes
Usage
from displaypurposes 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
Close
Hashes for api-display-purposes-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e4d0c7918d5a48fdfc12f6f97089c590af2014822886958f523ac3e7efa45a7 |
|
MD5 | 5f83397ffa8d5cadd8b38c0ffc8b744c |
|
BLAKE2b-256 | 672c501803261a75b0c5cd974c5d5344ad575bc7b8cf5f8ba1e20e2fe06eb670 |
Close
Hashes for api_display_purposes-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef597b7a33db630850e577c358183d40d612bd6ff399da81445053aec067f1c |
|
MD5 | a9b6b4782bfe6dc399b03521c5d75901 |
|
BLAKE2b-256 | 5c86a140d359426bce75613fe7323c9f8ecc285f2eadfabb37164c898d07de42 |