public class AbstractTwitterExtractor extends AbstractExtractor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATE_SI_BODY |
static java.lang.String |
DEFAULT_LANG |
static java.lang.String |
HASHTAG_SI_BODY |
private java.lang.String |
pin |
private twitter4j.auth.RequestToken |
requestToken |
static int |
SLEEP_TIME_BETWEEN_SEARCHES |
static java.lang.String |
TWEET_SI_BODY |
static java.lang.String |
TWEET_TYPE_SI |
private twitter4j.Twitter |
twitter |
static java.lang.String |
TWITTER_DATE_TYPE |
static java.lang.String |
TWITTER_FROM_USER_TYPE_SI |
static java.lang.String |
TWITTER_GEO_LOCATION_TYPE |
static java.lang.String |
TWITTER_HASH_TAG_TYPE |
static java.lang.String |
TWITTER_LANG_TYPE |
static java.lang.String |
TWITTER_MEDIA_ENTITY_TYPE |
static java.lang.String |
TWITTER_SEARCH_BODY |
static java.lang.String |
TWITTER_SEARCH_DATE_TYPE |
static java.lang.String |
TWITTER_SEARCH_QUERY_TYPE |
static java.lang.String |
TWITTER_TO_USER_TYPE_SI |
static java.lang.String |
TWITTER_TYPE_SI |
static java.lang.String |
TWITTER_URL_ENTITY_TYPE |
static java.lang.String |
TWITTER_USER_SI_BODY |
static java.lang.String |
TWITTER_USER_TYPE_SI |
CUSTOM_EXTRACTOR, DONE_FAILED, DONE_MANY, DONE_ONE, EXACTLY_GIVEN_URLS, FILE_EXTRACTOR, FILE_PATTERN, GIVEN_URLS_AND_ALL_CRAWLED_DOCUMENTS, GIVEN_URLS_AND_CRAWLED_DOCUMENTS_IN_URL_DOMAIN, GIVEN_URLS_AND_LINKED_DOCUMENTS, GIVEN_URLS_AND_URL_BELOW, INFO_WAIT_WHILE_WORKING, LOG_TITLE, POINT_START_URL_TEXT, RAW_EXTRACTOR, SELECT_DIALOG_TITLE, STRING_EXTRACTOR_NOT_SUPPORTED_MESSAGE, URL_EXTRACTORCLOSE, EXECUTE, INVISIBLE, VISIBLE, WAITRETURN_ERROR, RETURN_INFO| Constructor and Description |
|---|
AbstractTwitterExtractor() |
acceptBrowserExtractRequest, addCrawlerUrl, browserExtractorConsumesPlainText, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, doBrowserExtract, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getContentTypes, getCrawlerMode, getDescription, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, getName, getWandora, handle, handleContent, handleCustomType, handleFiles, handleForcedContent, handleInterrupt, handleStringContent, handleUrls, initializeCustomType, instantDropHandle, makeSubclassOfWandoraClass, runInOwnThread, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMap, useURLCrawleraddUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptionsforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStatepublic static final int SLEEP_TIME_BETWEEN_SEARCHES
public static java.lang.String DEFAULT_LANG
public static final java.lang.String TWEET_SI_BODY
public static final java.lang.String TWITTER_USER_SI_BODY
public static final java.lang.String HASHTAG_SI_BODY
public static final java.lang.String TWEET_TYPE_SI
public static final java.lang.String TWITTER_USER_TYPE_SI
public static final java.lang.String TWITTER_FROM_USER_TYPE_SI
public static final java.lang.String TWITTER_TO_USER_TYPE_SI
public static final java.lang.String TWITTER_DATE_TYPE
public static final java.lang.String TWITTER_LANG_TYPE
public static final java.lang.String TWITTER_GEO_LOCATION_TYPE
public static final java.lang.String TWITTER_HASH_TAG_TYPE
public static final java.lang.String TWITTER_MEDIA_ENTITY_TYPE
public static final java.lang.String TWITTER_URL_ENTITY_TYPE
public static final java.lang.String TWITTER_SEARCH_QUERY_TYPE
public static final java.lang.String TWITTER_SEARCH_DATE_TYPE
public static final java.lang.String TWITTER_TYPE_SI
public static final java.lang.String DATE_SI_BODY
public static final java.lang.String TWITTER_SEARCH_BODY
private twitter4j.Twitter twitter
private twitter4j.auth.RequestToken requestToken
private java.lang.String pin
public WandoraToolType getType()
AbstractWandoraToolTool type is used to categorize tools. Tool type has no real effect today, it is merely an informative property of a tool.
getType in interface WandoraToolgetType in class AbstractExtractorpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractExtractorpublic boolean isConfigurable()
AbstractWandoraToolisConfigurable in interface WandoraToolisConfigurable in class AbstractWandoraToolpublic void resetTwitter()
public twitter4j.Twitter initializeTwitter()
public void searchTwitter(twitter4j.Query[] queries,
int pages,
TopicMap tm)
public boolean _extractTopicsFrom(java.io.File f,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.lang.String str,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic Topic reifyTweet(long tid, java.lang.String from, java.lang.String msg, TopicMap tm)
public Topic getTweetType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterUserType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterFromUserType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterToUserType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getWandoraType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTweetDateType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTweetLangType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTweetGeoLocationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getHashtagType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getMediaEntityType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getURLEntityType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterSearchType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterSearchQueryType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getTwitterSearchDateType(TopicMap tm) throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team