Skip to main content

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

GNU

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

api-display-purposes-0.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

api_display_purposes-0.0.3-py3-none-any.whl (4.7 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