producthunt.py
Product Hunt API wrapper for python
Installation
pip install producthunt
init
First, initialize the ProductHunt class with your API key.
from producthunt import ProductHunt
api_key = 'YOUR_API_KEY_HERE'
ph = ProductHunt(api_key)
Get Daily Products
Fetch daily new products.
daily_products = ph.get_daily()
for product in daily_products:
print(f"ID: {product['ID']}")
print(f"Name: {product['Name']}")
print(f"Tagline: {product['Tagline']}")
Get Product Details
Fetch the details of a specific product using its slug.
product_details = ph.get_product_details("some-product-slug")
if product_details:
print(f"Name: {product_details['Name']}")
print(f"Tagline: {product_details['Tagline']}")
print(f"Description: {product_details['Description']}")
print(f"Website: {product_details['Website']}")
else:
print("Product not found.")
Get Posts by Topic
Fetch posts by topic:
products = ph.get_posts_by_topic('artificial-intelligence')
for product in products:
print(f"ID: {product['ID']}")
print(f"Name: {product['Name']}")
print(f"Tagline: {product['Tagline']}")
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for producthunt 0.1.4
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 |
|---|---|---|---|---|
| producthunt-0.1.4.tar.gz | 2.6 kB | Without provenance | Details for producthunt-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| producthunt-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for producthunt-0.1.4-py3-none-any.whl |
Total release size: 5.5 kB
Release files / producthunt-0.1.4.tar.gz
| Download URL | producthunt-0.1.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c035d833cea73b1f7a2533374c34dac19bfeae2ed6eb69e834285b88d2c1c1cb
|
|
BLAKE2b-256 checksum How to use checksums |
41c98db4770c2bcfd2f4c3f64a7fdc62f0a42f27bbb88bd96bccc91bfbb6cba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / producthunt-0.1.4-py3-none-any.whl
| Download URL | producthunt-0.1.4-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e71f3e3ef9ea49575ef755f021654b6a05eb1aca86c1aeb0409a2d276979a45
|
|
BLAKE2b-256 checksum How to use checksums |
8aaf09eeee3a6576b8a41253fc2d191080b998485d5bed15112b16018d02492d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for producthunt 0.1.4
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.