Urban Dictionary Python (Unofficial)
A Python Library To Web Scrape Urban Dictionary.
Installation
Use the package manager pip to install Urban Dictionary Python.
pip install urbandictionary_python
Usage
import urbandictionary_python
word="" # Enter A Word
# Make An Instance :
ubd=urbandictionary_python.UrbanDictionary(word)
# Get Most Liked Meaning :
print(ubd.meaning())
# Get Most Liked Meaning's Example :
print(ubd.example())
# Get Most Liked Meaning's Author Name :
print(ubd.author())
# Get Most Liked Meaning's Publishing Date :
print(ubd.publishing_date())
# Get Most Liked Meaning's Mug Link :
print(ubd.mug_link())
# Get Most Liked Meaning's Front Mug Image :
print(ubd.front_mug_image())
# Get Most Liked Meaning's Back Mug Image :
print(ubd.back_mug_image())
# Get More Meanings List :
print(ubd.more_meanings())
# Get More Meanings Of Query :
for i in ubd.more_meanings():
print(i)
# Get All Meanings Of Query :
for i in ubd.more_meanings():
print(i["meaning"])
# Get All Examples Of Query :
for i in ubd.more_meanings():
print(i["example"])
# Get Every Author's Name :
for i in ubd.more_meanings():
print(i["author"])
# Get Every Meaning's Publishing Date :
for i in ubd.more_meanings():
print(i["date"])
# Get Every Meaning's Mug Back Image :
for i in ubd.more_meanings():
print(i["mug_back_image"])
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for urbandictionary-python 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| urbandictionary_python-0.0.5.tar.gz | 3.6 kB | Without provenance | Details for urbandictionary_python-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urbandictionary_python-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for urbandictionary_python-0.0.5-py3-none-any.whl |
Total release size: 11.5 kB
Release files / urbandictionary_python-0.0.5.tar.gz
| Download URL | urbandictionary_python-0.0.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f3e9de87fe12e0f2ef3e5fc87238316caeff589473590f160006cdb6b637367
|
|
BLAKE2b-256 checksum How to use checksums |
4489ed4538f553898c0cf08e2994d6695fee7dfc7acb9bbf947ee215d0abb43b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.6.1 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6
|
Release files / urbandictionary_python-0.0.5-py3-none-any.whl
| Download URL | urbandictionary_python-0.0.5-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
641fd8a4040662c16cf6defb38efcf31012cf2f8e6042fd58c94518c7661111d
|
|
BLAKE2b-256 checksum How to use checksums |
76e8a30fadc6725f1431e0aee14049cbe6653d72324f9e634730f1d6ae4be196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.6.1 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6
|
Security for urbandictionary-python 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.