aboutsummaryrefslogtreecommitdiff
path: root/Aggregator/Parser/Download.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aggregator/Parser/Download.cs')
-rw-r--r--Aggregator/Parser/Download.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Aggregator/Parser/Download.cs b/Aggregator/Parser/Download.cs
new file mode 100644
index 0000000..30a2881
--- /dev/null
+++ b/Aggregator/Parser/Download.cs
@@ -0,0 +1,11 @@
+using System.Net;
+
+namespace Parser {
+ public static class Download {
+ public static string DownloadXML(string site) {
+ using (var client = new WebClient()) {
+ return client.DownloadString(site);
+ }
+ }
+ }
+}