A simple library to help a developer who is affiliated with Amazon to automate the process.
Project description
Amazon Affiliate - Scraper Tool
Quickstart
Creating Affiliate URL:
from amazon_affiliate import Client
def main():
client = Client(
cookies_file_path = "path/to/amazon_cookies.json", # Path to Amazon site cookies
origin_url = "https://www.amazon.com.br/", # Amazon 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://amzn.to/3qAp1rI
affiliate_url = client.create_affiliate_url("https://www.amazon.com.br/Introdu%C3%A7%C3%A3o-Programa%C3%A7%C3%A3o-com-Python-Algoritmos/dp/8575227181/?_encoding=UTF8&pd_rd_w=cLgOh&content-id=amzn1.sym.142cf30d-cd8e-4f67-a147-740799e27bf0&pf_rd_p=142cf30d-cd8e-4f67-a147-740799e27bf0&pf_rd_r=Q5SHBAZH69HSPBRR2MGS&pd_rd_wg=98FtW&pd_rd_r=ffa375c6-01c9-4e9c-9f87-2aef974a89af&ref_=pd_gw_ci_mcx_mr_hp_atf_m")
print(affiliate_url)
if __name__ == "__main__":
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for amazon-affiliate-scraper-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29d73842b4b48c520f22150e28bdd2f74d6f0fc7e7ce5ebd044319803a665f8 |
|
MD5 | 887f0943c3d02f389542b2abbc69f0a9 |
|
BLAKE2b-256 | ea5486581b9b28b94abcb44b461841c3ac0eec37977c0aeb07f40dd380c1fb10 |