Skip to content

Commit

Permalink
Fixed useragent.
Browse files Browse the repository at this point in the history
  • Loading branch information
devsaider committed Mar 4, 2016
1 parent e08abdf commit 91e88e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ru/devsaider/tfmxml/XMLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:\"(.*?)\",");
Expand Down

0 comments on commit 91e88e7

Please sign in to comment.