Sunday, May 14, 2023

 wget linux command to download download actual file from guthub or any other link in internet


Normally when you download any file, let say text file from github using "wget" command then it send the file in HTML wrapper. You will not be able to download the actual text file.

Error might like below:



Fix:
We need to use raw link like below:
https://raw.githubusercontent.com/abctest/ddsconfig/main/map.xml

instead of html link as below:

https://github.com/abctest/ddsconfig/blob/main/map.xml

If we use this html link we will be getting html file only.


No comments:

Post a Comment