Skip to content
  • About Me
  • Recommended Reading List
  • Resources
  • Yahoo_fin Documentation
  • Contact
  • Blog

Year: 2017

  • Home
  • 2017
  • Page 2
19Aug 2017 by Andrew Treadway
Logging into Amazon with Python

Logging into Amazon with Python

Python, Web Login
Click here for more recommended reading on Python and open source programming Recently, I was asked to show someone how to programmatically log in to Amazon using the Python requests package (unlike using selenium / mechanize etc.).  I thought I’d share how to do this as a blog post. Step 1) First, we'll load the packages we’ll need.  In our example, we’ll just be using requests and BeautifulSoup. For more information about either of these packages, see here for a refresher on requests, or here for more about BeautifulSoup. [code lang="python"] '''load packages''' import requests from bs4 import BeautifulSoup [/code] Step 2) Next, we create a session object. Basically, a session allows you to maintain a connection to a website, while also maintaining cookies. Once you’ve logged into Amazon, this…
Read More

Posts pagination

Previous 1 2
Subscribe to TheAutomatic.net!

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Recent Posts
  • Software Engineering for Data Scientists (New book!)
  • How to stop long-running code in Python
  • Faster alternatives to pandas
  • Automated EDA with Python
  • How to plot XGBoost trees in R
  • Python collections tutorial
  • How to create PDF files with Python
  • Faster data exploration with DataExplorer
  • How to get stock earnings data with Python
  • Technical analysis with Python
Categories
  • File Manipulation
  • Machine Learning
  • Pandas
  • Python
  • R
  • System Administration
  • Web Login
  • Web Scraping
Pages
  • About Me
  • Blog
  • Pyply Documentation
  • Recommended Reading List
  • Requests for Tutorials
  • Resources
  • TheAutomatic.net
  • Tutorial for Python Lists
  • Tutorial on Python List Comprehensions
  • Yahoo_fin Documentation
Useful sites

Web Scraping and APIs Course with Python

R-bloggers

R Weekly

Udacity

365 Data Science

Archives
  • April 2023
  • November 2021
  • October 2021
  • July 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • January 2018
  • December 2017
  • October 2017
  • September 2017
  • August 2017
Loading
Recent Posts
  • Software Engineering for Data Scientists (New book!)
  • How to stop long-running code in Python
  • Faster alternatives to pandas
  • Automated EDA with Python
  • How to plot XGBoost trees in R
  • Python collections tutorial
  • How to create PDF files with Python
  • Faster data exploration with DataExplorer
Categories
  • File Manipulation
  • Machine Learning
  • Pandas
  • Python
  • R
  • System Administration
  • Web Login
  • Web Scraping
Pages
  • About Me
  • Blog
  • Pyply Documentation
  • Recommended Reading List
  • Requests for Tutorials
  • Resources
  • Tutorial for Python Lists
  • Tutorial on Python List Comprehensions
  • Yahoo_fin Documentation
Archives
  • April 2023
  • November 2021
  • October 2021
  • July 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • January 2018
  • December 2017
  • October 2017
  • September 2017
  • August 2017
Recent Posts
  • Software Engineering for Data Scientists (New book!)
  • How to stop long-running code in Python
  • Faster alternatives to pandas
  • Automated EDA with Python
  • How to plot XGBoost trees in R
Categories
  • File Manipulation
  • Machine Learning
  • Pandas
  • Python
  • R
  • System Administration
  • Web Login
  • Web Scraping
Archives
  • April 2023
  • November 2021
  • October 2021
  • July 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • January 2018
  • December 2017
  • October 2017
  • September 2017
  • August 2017
Pages
  • About Me
  • Blog
  • Pyply Documentation
  • Recommended Reading List
  • Requests for Tutorials
  • Resources
  • Tutorial for Python Lists
  • Tutorial on Python List Comprehensions
  • Yahoo_fin Documentation
WordPress Theme - Total by HashThemes