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

Tag: FTP

  • Home
  • Blog
  • FTP
29Sep 2017 by Andrew Treadway
Downloading Every File on an FTP Server

Downloading Every File on an FTP Server

File Manipulation, Python, Web Login
Getting Started Before I go into the title of this article, I'm going to give an introduction to using Python to work with FTP sites. In our example, I will use (and extend upon) some of the code written in the yahoo_fin package. To work with FTP servers, we can use ftplib, which comes with the Python standard library, so you’ll probably already have it installed. In case you don’t, however, you can download it using pip: [code lang="python"] pip install ftplib [/code] To log into an FTP site, we first need to establish a connection. You can do this using the FTP method. Just replace ftp.nasdaqtrader.com with whatever FTP site you want to log into. [code lang="python"] '''Load the ftplib package ''' import ftplib '''Connect to FTP site''' ftp…
Read More
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