Skip to main content

Mercado Livre Affiliate - Scraper Tool

Quickstart

Creating Affiliate URL:

from mercado_livre_affiliate import MercadoLivreAffiliate
import json

def main():
    with open("www.mercadolivre.com.br.cookies.json", "r", encoding = "utf-8") as file:
        cookies = json.load(file)

    mercado_livre_affiliate = MercadoLivreAffiliate(
        cookies = cookies, # Mercado Livre site cookies
        origin_url = "https://www.mercadolivre.com.br/", # Mercado Livre root URL in your country
        webdriver_file_path = "path/to/webdriver.exe", # Path to browser webdriver
        headless = True # If the browser will appear
    )

    # Create an affiliate URL like: https://mercadolivre.com/sec/1QJMZsX
    affiliate_url = mercado_livre_affiliate.create_affiliate_url("https://produto.mercadolivre.com.br/MLB-2698490696-capinha-flashcase-aveludada-para-samsung-todos-os-modelos-_JM#reco_item_pos=1&reco_backend=univb-pdp-buybox&reco_backend_type=low_level&reco_client=pdp-v2p&reco_id=36bd3735-c484-4d17-b8f7-80a94da980f5&reco_backend_model=univb") 

    print(affiliate_url)

if __name__ == "__main__":
    main()

Metadata

Release files for mercado-livre-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 mercado-livre-affiliate-scraper 0.1.0
File Size Uploaded Provenance Actions
mercado_livre_affiliate_scraper-0.1.0.tar.gz 2.1 kB Without provenance Details for mercado_livre_affiliate_scraper-0.1.0.tar.gz

Release files / mercado_livre_affiliate_scraper-0.1.0.tar.gz

Download URL mercado_livre_affiliate_scraper-0.1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
26e1d7eb010694dc1efb32ffbb5432da5528f010450e5b277e1638f03db1d4c9
BLAKE2b-256 checksum
How to use checksums
b986ece2e5bb7693a4f99fd4b87987e52c307dea308b0ec512dbc87bfdae7972
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for mercado-livre-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