amazon-affiliate-scraper


Nameamazon-affiliate-scraper JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
Summary"A simple library to help a developer who is affiliated with Amazon to automate the process.
upload_time2024-05-09 19:34:46
maintainerNone
docs_urlNone
authorMarcuth
requires_python<4.0,>=3.12
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Amazon Affiliate - Scraper Tool

## Quickstart

### Creating Affiliate URL:

```py
from amazon_affiliate import AmazonAffiliate
import json

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

def main() -> None:
    amazon_affiliate = AmazonAffiliate(
        cookies = get_amazon_cookies(),
        origin_url = "https://www.amazon.com.br/",
        headless = False
    )

    affiliate_url = amazon_affiliate.create_affiliate_url("https://www.amazon.com.br/Echo-Dot-5%C2%AA-gera%C3%A7%C3%A3o-Cor-Preta/dp/B09B8VGCR8/?_encoding=UTF8&pd_rd_w=z10q4&content-id=amzn1.sym.52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_p=52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_r=6360ZE14T1KEYVFYZMBQ&pd_rd_wg=1fQsD&pd_rd_r=58179dcd-f33a-44a6-9b15-0fd56b159876&ref_=pd_gw_crs_zg_bs_16209062011")

    print(affiliate_url)

if __name__ == "__main__":
    main()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "amazon-affiliate-scraper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": null,
    "keywords": null,
    "author": "Marcuth",
    "author_email": "example@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1e/29/99379898f2d083eaffe89c29b5c4997bbc73df6290b15d0512ee31d914e9/amazon_affiliate_scraper-0.2.2.tar.gz",
    "platform": null,
    "description": "# Amazon Affiliate - Scraper Tool\n\n## Quickstart\n\n### Creating Affiliate URL:\n\n```py\nfrom amazon_affiliate import AmazonAffiliate\nimport json\n\ndef get_amazon_cookies() -> list[dict]:\n    with open(\"www.amazon.com.br.cookies (2).json\", \"r\") as file:\n        cookies = json.load(file)\n        return cookies\n\ndef main() -> None:\n    amazon_affiliate = AmazonAffiliate(\n        cookies = get_amazon_cookies(),\n        origin_url = \"https://www.amazon.com.br/\",\n        headless = False\n    )\n\n    affiliate_url = amazon_affiliate.create_affiliate_url(\"https://www.amazon.com.br/Echo-Dot-5%C2%AA-gera%C3%A7%C3%A3o-Cor-Preta/dp/B09B8VGCR8/?_encoding=UTF8&pd_rd_w=z10q4&content-id=amzn1.sym.52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_p=52e74d21-088e-4a9d-888d-8b14bf95d4ae&pf_rd_r=6360ZE14T1KEYVFYZMBQ&pd_rd_wg=1fQsD&pd_rd_r=58179dcd-f33a-44a6-9b15-0fd56b159876&ref_=pd_gw_crs_zg_bs_16209062011\")\n\n    print(affiliate_url)\n\nif __name__ == \"__main__\":\n    main()\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\"A simple library to help a developer who is affiliated with Amazon to automate the process.",
    "version": "0.2.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e2999379898f2d083eaffe89c29b5c4997bbc73df6290b15d0512ee31d914e9",
                "md5": "b9e4c983bf15fbe779640127e663eab6",
                "sha256": "d7c7572624bb15df6e19c1a4cd805835d071da03932a4e8117154ca489ef342b"
            },
            "downloads": -1,
            "filename": "amazon_affiliate_scraper-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b9e4c983bf15fbe779640127e663eab6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 2129,
            "upload_time": "2024-05-09T19:34:46",
            "upload_time_iso_8601": "2024-05-09T19:34:46.845978Z",
            "url": "https://files.pythonhosted.org/packages/1e/29/99379898f2d083eaffe89c29b5c4997bbc73df6290b15d0512ee31d914e9/amazon_affiliate_scraper-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-09 19:34:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "amazon-affiliate-scraper"
}
        
Elapsed time: 4.71634s