crouvpony47 / furdown

A mass download tool for FurAffinity written in C#
MIT License
75 stars 7 forks source link

Feature Request - Option to grab URLs of images without downloading. #30

Closed KevanAwesome closed 2 years ago

KevanAwesome commented 3 years ago

A mode to grab the URL of the images from FurAffinity database[d.furaffinity.net].

KevanAwesome commented 3 years ago

Into like a txt file; as the program already shows the links in the cmd prompt.

crouvpony47 commented 3 years ago

This is something that you can easily make a hack for.

A proper GUI option would be nice, but at this point the app depends on so many things that are either already obsolete (or getting dangerously close) for its UI that this entire part needs to be rewritten anyway.

As for the hack, in CoreApp.cs, find a block starting with

using (var response = await http.GetAsync(sp.URL.Replace("?", "%3F"), HttpCompletionOption.ResponseHeadersRead))

that sp.URL.Replace("?", "%3F") is the URL. Assuming you just want every URL written to a single large file, just replace the entire using block with something like:

File.AppendAllText("urls.txt", sp.URL.Replace("?", "%3F") + Environment.NewLine);
KevanAwesome commented 2 years ago

Ok.