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)
| File | Size | Uploaded | |
|---|---|---|---|
| mercado_livre_affiliate_scraper-0.1.0.tar.gz | 2.1 kB | Details |
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
|