aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 17:54:29 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 17:54:29 +0000
commit62ab81b11d2df352ba2ac7ca47308e11c4683d08 (patch)
treefcea2e6e812889b65142b63520dbaf58a6e38564
parent20dafe9fb05448c39fe109b0231307335191459b (diff)
downloadnewsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.tar.gz
newsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.tar.bz2
newsaggregator-62ab81b11d2df352ba2ac7ca47308e11c4683d08.zip
Updated articles for new insert articles method
-rw-r--r--Main/Program.cs7
1 files changed, 4 insertions, 3 deletions
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<Article> 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);
}
}
}