Skip to main content

Shopee Affiliate - Scraper Tool

Quickstart

Creating Affiliate URL:

from shopee_affiliate import ShopeeAffiliate
import json

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

def main() -> None:
    cookies = get_shopee_cookies()

    shopee_affiliate = ShopeeAffiliate(
        cookies = cookies,
        headless = False
    )

    affiliate_urls = shopee_affiliate.create_affiliate_urls([
        "https://shopee.com.br/Anel-A%C3%A7o-Inoxidavel-Titanium-Ultra-Resistente-Elegante-Moderno-Tit%C3%A2nio-i.216863756.19571410921?sp_atk=32011a47-12e1-4519-930f-e1babe0029d4&xptdk=32011a47-12e1-4519-930f-e1babe0029d4",
        "https://shopee.com.br/8MM-De-Largura-Novo-Anel-De-A%C3%A7o-Tit%C3%A2nio-Colorido-Para-Homens-Acess%C3%B3rios-De-J%C3%B3ias-Inoxid%C3%A1vel-Fashionable-i.1006215031.20986808207?sp_atk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f&xptdk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f",
        "https://shopee.com.br/Anel-Masculino-A%C3%A7o-Negro-Preto-Inoxid%C3%A1vel-Motoqueiro-Moderno-i.331420767.21899047159?sp_atk=f6efd325-ccc4-42e3-a590-14d425ebb09a&xptdk=f6efd325-ccc4-42e3-a590-14d425ebb09a",
        "https://shopee.com.br/8MM-Moda-Homem-E-Mulher-Simples-Anel-Duplo-Biselado-Polido-Azul-Ouro-Tit%C3%A2nio-De-A%C3%A7o-i.397469095.22226995990?sp_atk=57420437-3fa9-4c98-af02-aafb2556e7f5&xptdk=57420437-3fa9-4c98-af02-aafb2556e7f5",
        "https://shopee.com.br/An%C3%A9is-De-A%C3%A7o-Tit%C3%A2nio-Para-Mulheres-E-Homens-i.1006215031.23387604145?sp_atk=6929b0ff-53ee-4099-a3a6-891c948817cf&xptdk=6929b0ff-53ee-4099-a3a6-891c948817cf"
    ])

    print(affiliate_urls)

if __name__ == "__main__":
    main()

Metadata

Release files for shopee-affiliate-scraper 0.1.0

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

Source distribution (sdist)

Source distribution for shopee-affiliate-scraper 0.1.0
File Size Uploaded Provenance Actions
shopee_affiliate_scraper-0.1.0.tar.gz 2.7 kB Without provenance Details for shopee_affiliate_scraper-0.1.0.tar.gz

Release files / shopee_affiliate_scraper-0.1.0.tar.gz

Download URL shopee_affiliate_scraper-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
aa58a6e5e5950a0e74157a12ecfc8e2882b8dea022e35d55540f0e20969d30f1
BLAKE2b-256 checksum
How to use checksums
3652d8af07760a533b7af0e591ed790599c8101a6ab9ab80b90fb9ec506cc914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for shopee-affiliate-scraper 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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