Open rubdottocom opened 10 years ago
Why not use the official Twitter API? I think they don't like scraping ;)
BTW: I would personally also being interested in scraping twitter ;) BTW2: normally snacktory already accepts all cookies. See HtmlFetcher:
static {
SHelper.enableCookieMgmt();
SHelper.enableUserAgentOverwrite();
SHelper.enableAnySSL();
}
Well... I don't want that the user needs to do a Twitter authentication with my App, so I'm receiving content from other apps through Share option across Android system.
I'll investigate further, thanks
I fear you'll need to do some JavaScript hacks. Or investigate how blind people, browsers like lynx or JS-disabled browsers can access Twitter. Also RSS does not seem to work anymore: https://twitter.com/timetabling.rss
Hi! I'm trying to fetch content from the URLs inside of a Tweet.
When I try to do it for Official Twitter Android app, Twitter only shares with me a text like "read this tweet from @user at http://twitter.com/status/8341234812634".
So I fetch this URL with the hope to get the real tweet text with the real URL that I want to fetch.
However, when I do that I receive from Twitter a sort of warning that I must accept the use of cookies "To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor Twitter Ads, measure their performance and provide you with a better, faster, safer Twitter experience. By using our services, you agree to our Cookie Use. Close".
I tried to set some "user-agent" and "cookie" configuration to HttpURLConnection before fetch Twitter, without success.
Do you know how can I achieve that?
That's currently my code (some dirty, I'm wondering to push you a fix when it works).