Posts

Showing posts with the label Command line

How to download files using Wget and python

Image
In this session, I'll attempt to cover Wget and use python to fetch the data with help of Command line which enhances your capacity for flawless performance in interview questions and practical tests. If you are interested in DevOps and Python Engineer; I will recommend that you read this article carefully. Wget  Is a program  Download files from the internet  Used TCP Protocal  Support HTTP, HTTPS, FTP, FTPS  Why Wget? It is a network command line tool that you can download the file from the server . Most used in RestAPI and deal with unstable network or slow network connections. Wget will continue to attempt until the file is downloaded. Installation and basic commands I am used to window 10 OS and will show you every command step by step via window terminal. First we need to import the wget library by use of pip install wget command. Command python -m wget [options] <URL. options  -o –output FILE|DIR output filename or directory Run the below command ...