From: Antonio Ospite Date: Wed, 6 Jun 2018 11:20:28 +0000 (+0200) Subject: Tweeper.php: bump version in the User-Agent string X-Git-Tag: v1.3.0~6 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/0db2f370fa48cabf296de88d07436082ffa46d50?ds=inline Tweeper.php: bump version in the User-Agent string By using a more recent version of the User-Agent, twitter.com will return more entries in the result when visiting hashtag pages. This makes tracking hashtag pages actually usable. Tested with https://twitter.com/hashtag/tweeper --- diff --git a/src/Tweeper.php b/src/Tweeper.php index f82f3da..50ff148 100644 --- a/src/Tweeper.php +++ b/src/Tweeper.php @@ -36,7 +36,7 @@ date_default_timezone_set('UTC'); */ class Tweeper { - private static $userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"; + private static $userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"; /** * Constructor sets up {@link $generate_enclosure}.