This is a practice for web scraping using Xpath and the python package, selennium. By running amazon_signin.py in the terminal, users can log into their amazon accounts automatically.
- Download amazon_signin.py
- Install selenium.
- At line 14 and 20, for strings, "EMAIL or USER_NAME" and "PASSWORD", please replace them with your own email/amazon username and password.
- Make sure you have Chrome.
- Run it in terminal and enjoy auto sign in!
This repo may only fit a specific verson of the webpage. For instance, the sign in bar is at a particular place. For my own experience, if you get on amazon for multiple times in a small time period, you may be led to another version of its webpage.