Browse Source

Change UserAgent

I don't trust CFR that much
master
Kenneth Bruen 3 weeks ago
parent
commit
88dd5a5314
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 4
      scraper/src/Scrapers/Route.cs
  2. 4
      scraper/src/Scrapers/Station.cs
  3. 4
      scraper/src/Scrapers/Train.cs

4
scraper/src/Scrapers/Route.cs

@ -60,8 +60,8 @@ public class RouteScraper {
DefaultRequestVersion = new Version(2, 0),
DefaultRequestHeaders = {
UserAgent = {
new ProductInfoHeaderValue("new-infofer-scraper", "0.0.1"),
new ProductInfoHeaderValue("(developed by DC Dev as a hobby, get in touch at webmaster<at>dcdev.ro for any issues)"),
new ProductInfoHeaderValue("infotren-scraper", "0.0.2"),
new ProductInfoHeaderValue("(developed as a hobby)"),
},
},
};

4
scraper/src/Scrapers/Station.cs

@ -54,8 +54,8 @@ namespace InfoferScraper.Scrapers {
DefaultRequestVersion = new Version(2, 0),
DefaultRequestHeaders = {
UserAgent = {
new ProductInfoHeaderValue("new-infofer-scraper", "0.0.1"),
new ProductInfoHeaderValue("(developed by DC Dev as a hobby, get in touch at webmaster<at>dcdev.ro for any issues)"),
new ProductInfoHeaderValue("infotren-scraper", "0.0.2"),
new ProductInfoHeaderValue("(developed as a hobby)"),
},
},
};

4
scraper/src/Scrapers/Train.cs

@ -72,8 +72,8 @@ namespace InfoferScraper.Scrapers {
DefaultRequestVersion = new Version(2, 0),
DefaultRequestHeaders = {
UserAgent = {
new ProductInfoHeaderValue("new-infofer-scraper", "0.0.1"),
new ProductInfoHeaderValue("(developed by DC Dev as a hobby, get in touch at webmaster<at>dcdev.ro for any issues)"),
new ProductInfoHeaderValue("infotren-scraper", "0.0.2"),
new ProductInfoHeaderValue("(developed as a hobby)"),
},
},
};

Loading…
Cancel
Save