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
shopee_affiliate_scraper-0.1.0.tar.gz 2.7 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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