java:miningthesocialweb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
java:miningthesocialweb [2014/01/26 00:56] – rlunaro | java:miningthesocialweb [2014/01/27 22:44] – rlunaro | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Mining the social web, 2nd edition ====== | + | ====== Mining the social web, 2nd edition |
===== Introduction ===== | ===== Introduction ===== | ||
Line 49: | Line 49: | ||
cb.setDebugEnabled(true) | cb.setDebugEnabled(true) | ||
- | .setOAuthConsumerKey(" | + | .setOAuthConsumerKey("" |
- | .setOAuthConsumerSecret(" | + | .setOAuthConsumerSecret("" |
- | .setOAuthAccessToken(" | + | .setOAuthAccessToken("" |
- | .setOAuthAccessTokenSecret(" | + | .setOAuthAccessTokenSecret("" |
| | ||
tf = new TwitterFactory(cb.build()); | tf = new TwitterFactory(cb.build()); | ||
Line 95: | Line 95: | ||
} | } | ||
} // exploringTrendingTopics | } // exploringTrendingTopics | ||
- | < | + | </code> |
=== Get trending topics by country === | === Get trending topics by country === | ||
- | It's possible that not all the trending topics can be consulted. For instance, I've tried with other locations (cities in Spain) and it doesn' | + | It's possible that not all the trending topics can be consulted. For instance, I've tried with other locations (cities in Spain) and it doesn' |
+ | |||
+ | However, you should register in [[http:// | ||
<code java> | <code java> | ||
Line 108: | Line 110: | ||
{ | { | ||
- | GeoPlanet g = new GeoPlanet(" | + | GeoPlanet g = new GeoPlanet("" |
PlaceCollection places = g.getPlaces(" | PlaceCollection places = g.getPlaces(" | ||
java/miningthesocialweb.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1