From 62ab81b11d2df352ba2ac7ca47308e11c4683d08 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 17:54:29 +0000 Subject: Updated articles for new insert articles method --- Main/Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Main/Program.cs') diff --git a/Main/Program.cs b/Main/Program.cs index aa641c9..3d56b36 100644 --- a/Main/Program.cs +++ b/Main/Program.cs @@ -37,13 +37,14 @@ namespace Main { } }; string[] xmls = new[] { - await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml") + await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml"), + await Download.DownloadXML("http://feeds.skynews.com/feeds/rss/world.xml"), + await Download.DownloadXML("https://abcnews.go.com/abcnews/topstories") }; List
articles = ParserService.ParseMultiple(xmls, configs).ToList(); using (var db = new DatabaseContext()) { - int records = await db.InsertArticles(articles); - Console.WriteLine($"{records} written to database"); + await db.InsertArticles(articles); } } } -- cgit v1.2.3-13-gbd6f