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_EXTRACTOR
CLOSE, EXECUTE, INVISIBLE, VISIBLE, WAIT
RETURN_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, useURLCrawler
addUndoMarker, 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, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public 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()
AbstractWandoraTool
Tool 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 WandoraTool
getType
in class AbstractExtractor
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractExtractor
public boolean isConfigurable()
AbstractWandoraTool
isConfigurable
in interface WandoraTool
isConfigurable
in class AbstractWandoraTool
public 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 AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.net.URL u, TopicMap tm) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String str, TopicMap tm) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public Topic reifyTweet(long tid, java.lang.String from, java.lang.String msg, TopicMap tm)
public Topic getTweetType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterUserType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterFromUserType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterToUserType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getWandoraType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTweetDateType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTweetLangType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTweetGeoLocationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getHashtagType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getMediaEntityType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getURLEntityType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterSearchType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterSearchQueryType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTwitterSearchDateType(TopicMap tm) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team