From 91e88e76edfd1afaef10f93afa4af19df901db52 Mon Sep 17 00:00:00 2001 From: Ruslan Devsaider Date: Sat, 5 Mar 2016 02:12:37 +0300 Subject: [PATCH] Fixed useragent. --- src/main/java/ru/devsaider/tfmxml/XMLParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/devsaider/tfmxml/XMLParser.java b/src/main/java/ru/devsaider/tfmxml/XMLParser.java index c0c70f4..5232335 100644 --- a/src/main/java/ru/devsaider/tfmxml/XMLParser.java +++ b/src/main/java/ru/devsaider/tfmxml/XMLParser.java @@ -27,7 +27,7 @@ public static void main(String[] args) throws IOException { public static String fetchSingle(int mapCode) throws IOException { Document doc = Jsoup.connect("http://api.micetigri.fr/maps/@" + String.valueOf(mapCode)) - .userAgent("Devsaider XML parser/1.0") + .userAgent("Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36") .get(); String cryptedXML; Pattern p = Pattern.compile("(?is)map:\"(.*?)\",");