Twitter

Table of contents

Description

Provides access to tweets as well as profiles of connected people of a twitter user.

Responsible Person

Status

Status

Ready for use

Possible Values: Ready for Use, In Development, Plannend, Broken

Info

Aggregation Features

Fill

Yes

Update

No

Enrich

No

Source Code

Project: https://github.com/soziotech/CommunityMashup/tree/master/sources/TwitterSourceService

Tracking

0%

Planned Todos

  1. handler

    Searches should be possible without authentication.

    Priority MEDIUM
    i21bpela
    Dec 17, 2012
0%

Bugs

0%

Feature Request

Used Service

Name

Twitter

Link

http://twitter.com/

Developer Portal

https://dev.twitter.com/

Authentication

OAuth 2.0

 

Used Libraries

Name

Version

License

Usage

Link

Twitter4J

2.2.5

Apache License 2.0

Compiled

http://twitter4j.org/en/index.html

Possible Usage Values: Compiled, Source, Extended Source, Modified Source

Info

Configuration

Key

Description

Possible Values

Default

Required (Yes/No)

consumerKey

Consumer key for authentication

Text

empty

Yes

consumerSecretConsumer secret for authenticationTextemptyYes
accessTokenAccess token for authenticationTextnoneYes
accessTokenSecretAccess token for authenticationTextnoneYes
commandLineAuthenticationSwitch to turn on a command line authentication with mendeley. This should only be used in development environments. The access token and its secret should be empty in this case.true/falsefalseNo
addPeopleStatusThe status is the last tweet of a person. If set to true this will be added for every added person.true/falsefalseNo
addMentionedPeopleIf set to true, persons mentioned in tweets will be added.true/falsefalseNo
addURLEntitiesIf set to true, urls appearing in tweets will be added as websites to content of a tweet. Note: Twitter supports this only since the middle of 2012. Urls in older tweets will not be handled.true/falsefalseNo
loadHomeTimelineIf set to true, the home timeline (the newest tweets from persons the account owner follows) will be added.true/falsefalseNo
loadUserTimelineIf set to true, the user timeline (the newest tweets of the account owner) will be added.true/falsefalseNo

loadAccountOwner

Whether the profile of the account owner should be loaded or not

true/falsetrueNo
numberOfUserTimelineTweetsThe number of tweets from the user timeline that should be added.1..20020No
loadFollowingIf set to true, persons following the account owner will be added. Note: This feature needs many api calls and the limits will be reached very quickly.true/falsefalseNo
loadFollowersIf set to true, persons the account owner follows will be added. Note: This feature needs many api calls and the limits will be reached very quickly.true/falsefalseNo
interconnectFollowingIf set to true, persons in the data set will be connected depending of their following relation on twitter. Note: This feature needs many api calls and the limits will be reached very quickly.true/falsefalseNo
interconnectFollowersIf set to true, persons in the data set will be connected depending of their follow relation on twitter. Note: This feature needs many api calls and the limits will be reached very quickly.true/falsefalseNo
searchTerm to search tweets for.Text, e. g. #cscwnoneNo
numberOfSearchTweetsNumber of tweets that should be loaded at search.1..10020No
loadHighResProfileImageWhether a higher res profile image should be loaded for every twitter user. Results to an extra api call for every user.true/falsefalseNo

searchLatitude

Geolocation latitude to search for tweets.latitudenoneNo

searchLongitude

Geolocation longitude to search for tweets.longitudenoneNo

searchRadius

Radius around the geolocation to search for tweets.1-100100No

searchRadiusUnit

Unit of the search radius.

km/mikmNo

loadPhotos

Whether to load photos from media entities as content attachments.

true/falsefalseNo

loadPhotoTweetsOnly

Whether to keep only tweets with photos.

true/falsefalseNo

Example:

<sources bundleId="org.sociotech.communitymashup.source.TwitterSourceService" name="Tweets">
   <configuration>
      <properties Key="consumerKey" Value="-" />
      <properties Key="consumerSecret" Value="-" />
      <properties Key="accessToken" Value="-" />
      <properties Key="accessTokenSecret" Value="-" />
      <properties Key="loadHomeTimeline" Value="false" />
      <properties Key="loadUserTimeline" Value="true" />
      <properties Key="numberOfUserTimelineTweets" Value="50" />
      <properties Key="addURLEntities" Value="true"/>
   </configuration>
</sources>

Description

With this configuration the newest 50 tweets of the account provider will be loaded. The url in tweets will be added as websites. Note: access token and secret as well as consumer key and secret must be replaced to run this configuration.

Meta-Informations

Type

Description

Value

Items

MetaTag

Meta tag for items added by a twitter source.

twitter

Items

MetaTagMeta tag for profile images from twitter.twitter_profile_imageImages
MetaTagMeta tag for persons that provided their account for the twitter source. (The provider of the access token)provided_twitter_profilePerson
MetaTagMeta tag for all tweeted images.

tweetpic

Content

Transformation

External

CommunityMashup

Tweet

Content

Url in TweetWebsite added to tweet Content
Hashtag in TweetTag added to Content
Person mentioned in tweetContributor of Content
Twitter profilePerson
Twitter screen nameWebAccount added to Person
Twitter account creation dateCreation date of WebAccount
Twitter profile url

WebSite added to Person

Twitter profile imageImage added to Person
Location in twitter profileLocation (single stringValue) added to Person