aboutsummaryrefslogtreecommitdiff
path: root/Main/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Main/Program.cs')
-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);
}
}
}