amazon-api-datakund
latest

Contents:

  • Introduction
  • Installation/Usage:
  • Import datakund
  • Creating Object
  • Functions
    • Login
    • Logout
    • Search
    • Select Brand
    • Select Category
    • Get Reviews
    • Add To Cart
    • Search Results
    • Click Next
    • Buy
    • Select Payment Method
    • Select Bank
    • Place Order
    • Fill Cvv
    • Click Next Reviews
    • Product Info
    • Login Cookie
  • Other Functions
amazon-api-datakund
  • »
  • Functions »
  • Login Cookie
  • Edit on GitHub

Login Cookie¶

It logins to the amazon through cookies passed in cookies. By default it logins to amazon.com , but you can pass login url in login_url.

body: returns data

success_score: api success rate

errors: errors encountered in api

Here is the code:-

amazon.login_cookie(login_url="https://www.amazon.com/gp/sign-in.html",cookies=[{"domain": ".amazon.in","expirationDate": 1644991052.296449,"hostOnly": false,"httpOnly": false,},..])¶
Parameters
  • login_url (str) – e.g www.amazon.in

  • cookies (str) – list of cookies

Returns

{“body”: {}, “success_score”: “100”, “errors”: []}

Return type

dict

Next Previous

© Copyright 2020, datakund. Revision dfb08dbd.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds