On 02.05.2018 19:25, Sameeran Joshi wrote: > Hi,I am a newbie to wget,i have tried some interesting stuffs using wget by > reading documentation,and I am curious about how the internal working of > wget [url] works,what may be the logic used.So I downloaded the source code > but I am confused where can I get the very simplest source code of wget > [url] ,the internal functions used for it.I think it would be the simplest > exercise to start with as a newbie.can anyone suggest me where can I get > the correct file?Also I would like to make a small C program the way wget > works. > Thank you
The best is to start with Wget2. It comes with a library (libwget) that makes it easy to download and parse HTML/CSS/XML files. You'll also find some simple C examples in the examples/ directory. Have a look at https://gitlab.com/gnuwget/wget2, there are instruction how to get the sources and how to build+install wget2 and libwget. Regards, Tim
signature.asc
Description: OpenPGP digital signature