I will write down the useful method. I used it several times and it works good. It’s C# method to create a UNC directory recursively and return the path.
\n" } ] ``` in the 'datasource.json' file you can set multiple resources for downloading the content and filenames to store the data respectively. ```json [ { "Url": "https://markimarta.com/wp-json/wp/v2/posts", "StorePath": "c:\\Temp\\mimnews.json" }, { "Url": "https://markimarta.ru/wp-json/wp/v2/posts", "StorePath": "c:\\Temp\\mimrunews.json" } ] ``` ## Prerequisites - AutoMapper 12.0.1 - AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 - Microsoft.NETCore.App 6.0.16 - Microsoft.Extensions.Configuration 7.0.0 - Microsoft.Extensions.Configuration.Json 7.0.0 - Microsoft.Extensions.DependencyInjection 7.0.0 - NLog 5.2.3 - Newtonsoft.Json 13.0.3 - RestSharp 110.2.0 ## Solution | Solution | Author(s) | | ----------- | ------------------------------------------------------------- | | NewsLoader | Aleksei Beliaev, https://www.linkedin.com/in/aleksei-beliaev/ | ## Version history | Version | Date | Comments | | ------- | ------------------- | ----------------- | | 1.2.2 | September 14, 2023 | Full Url added | | 1.2.1 | September 11, 2023 | Dev / prod config | | 1.2 | August 29, 2023 | Multiple load | | 1.1 | August 28, 2023 | JSON simplified | | 1.0 | August 25, 2023 | Initial release | ## Minimal Path to Awesome - Clone this repository - Ensure that you are at the solution folder - update the values in 'appsettings.json' - remote url and where to store text data - update the log-file location in nlog.config - compile and execute