Skip to content

Commit

Permalink
add support for Twitterbot
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Aug 13, 2015
1 parent 75b511e commit c7dce44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/is/tagomor/woothee/crawler/Crawlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ else if (ua.indexOf("facebookexternalhit") > -1) {
updateMap(result, DataSet.get("facebook"));
return true;
}
else if (ua.indexOf("Twitterbot/") > -1) {
updateMap(result, DataSet.get("twitter"));
return true;
}
else if (ua.indexOf("ichiro") > -1) {
if (ua.indexOf("http://help.goo.ne.jp/door/crawler.html") > -1 || ua.indexOf("compatible; ichiro/mobile goo;") > -1) {
updateMap(result, DataSet.get("goo"));
Expand Down

0 comments on commit c7dce44

Please sign in to comment.