urbanpython is an API wrapper for the Urban Dictionary JSON API
Project description
urbanpython
urbanpython is an API wrapper for the Urban Dictionary JSON API
Installation
To install urbanpy, do:
pip install urbanpython
or
python -m pip install urbanpython
Documentation
This README file is the documentation
Examples
To get your API key, go to https://rapidapi.com/community/api/urban-dictionary/endpoints and get your API key
import urbanpython
urban = urbanpython.Urban("-your api key-")
result = urban.search("the thing you are gonna search")
print(result.definition) #Definition of the post
print(result.permalink) #The link to the post
print(result.thumbs_up) #Number of thumbs ups
print(result.thumbs_down) #Number of thumbs downs
print(result.sounds_url) #A list of the sounds urls in the post
print(result.author) #The author of the post
print(result.defid) #The ID of the definition
print(result.written_on) #The time the definition got written on
print(result.example) #The example of the post
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
urbanpython-1.0.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for urbanpython-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72efcac2ac53356c7867a0cd9ac6de1e29994f74cb1ee214267e40f396a68e85 |
|
MD5 | 63426f4051919bde1f7ad7c7846fad74 |
|
BLAKE2b-256 | 5487c85302c4eee3ff4594d9b06715c2d621cbadb8315cdce5ac2b03c858c6a6 |