amazon-api-datakund
latest

Contents:

  • Introduction
  • Installation/Usage:
  • Import bot-studio
  • 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

Previous Next

© Copyright 2020, datakund. Revision 27256881.

Built with Sphinx using a theme provided by Read the Docs.