summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ae19a2f)
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.
- 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;
private static $maxConnectionTimeout = 5;
private static $maxConnectionRetries = 5;