Set User-Agent to impersonate a Google crawler, this makes twitter.com
return the old desktop UI which can be more easily scraped.
This restore brings back support for twitter.com which has stopped
serving the mobile UI which was still scrapeable somehow.
*/
class Tweeper {
- private static $userAgent = "Mozilla/5.0";
+ private static $userAgent = "APIs-Google (+https://developers.google.com/webmasters/APIs-Google.html)";
private static $maxConnectionTimeout = 5;
private static $maxConnectionRetries = 5;