Skip to main content

Amazon Affiliate - Scraper Tool

Quickstart

Creating Affiliate URL:

from amazon_affiliate import AmazonAffiliate
import json

def get_amazon_cookies() -> list[dict]:
    with open("www.amazon.com.br.cookies (2).json", "r") as file:
        cookies = json.load(file)
        return cookies

def main() -> None:
    amazon_affiliate = AmazonAffiliate(
        cookies = get_amazon_cookies(),
        origin_url = "https://www.amazon.com.br/",
        headless = False
    )

    affiliate_url = amazon_affiliate.create_affiliate_url("https://www.amazon.com.br/Echo-Dot-5%C2%AA-gera%C3%A7%C3%A3o-Cor-Preta/dp/B09B8VGCR8/?_encoding=UTF8&pd_rd_w=z10q4&content-id=amzn1.sym.52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_p=52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_r=6360ZE14T1KEYVFYZMBQ&pd_rd_wg=1fQsD&pd_rd_r=58179dcd-f33a-44a6-9b15-0fd56b159876&ref_=pd_gw_crs_zg_bs_16209062011")

    print(affiliate_url)

if __name__ == "__main__":
    main()

Metadata

Release files for amazon-affiliate-scraper 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazon-affiliate-scraper 0.2.2
File Size Uploaded Provenance Actions
amazon_affiliate_scraper-0.2.2.tar.gz 2.1 kB Without provenance Details for amazon_affiliate_scraper-0.2.2.tar.gz

Release files / amazon_affiliate_scraper-0.2.2.tar.gz

Download URL amazon_affiliate_scraper-0.2.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d7c7572624bb15df6e19c1a4cd805835d071da03932a4e8117154ca489ef342b
BLAKE2b-256 checksum
How to use checksums
1e2999379898f2d083eaffe89c29b5c4997bbc73df6290b15d0512ee31d914e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for amazon-affiliate-scraper 0.2.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page