summaryrefslogtreecommitdiff
path: root/src/main
AgeCommit message (Collapse)AuthorFilesLines
2014-05-07Add command to repeat last command.Peter Wu1-1/+10
2014-05-07Shutdown hook for safely closing filesPeter Wu1-0/+8
2014-05-07F it, get rid of junkPeter Wu1-15/+0
2014-05-07Prevent enabling both cfile and filePeter Wu1-3/+13
2014-05-07Get rid of separate profilesPeter Wu2-17/+4
These are always available from the tweets themselves...
2014-05-07Allow commit to disconnect for empty keywords, detect dead connectionPeter Wu1-0/+15
2014-05-03TweetShell: Safely close files to prevent file corruptionPeter Wu1-0/+2
2014-05-03Rename config option, default to converting uncompressed filesPeter Wu1-2/+2
2014-05-02Accept multiple commands (for automation)Peter Wu2-8/+15
Instead of `./run.sh shell target +file`, and then manually running add and commit, you can now use: ./run.sh shell 'target +file' 'add samsung' commit Quoting is necessary because of the spaces.
2014-05-02Properly close files and stream on exitPeter Wu1-3/+18
2014-05-02Accept "force-gzip" option to force compressionPeter Wu1-2/+4
2014-05-02DataWriter should not open files in constructorPeter Wu1-0/+1
Right now Store instances are created in the constructor of DataWriter. This causes issues, namely that Store instances are unable to use DataWriter in its constructor. The real-world implication is that convertUncompressed in CompressableDataWriter is unusable for the CompressedStore.
2014-05-02Reject commits without keywordsPeter Wu1-1/+12
2014-05-02Support compressed filesPeter Wu1-2/+11
2014-05-02Adjust target command help message, print available targetsPeter Wu1-7/+10
2014-05-02Track number of unique users for status reportingPeter Wu2-1/+27
2014-05-02Don't ignore IOException stupid!Peter Wu1-5/+10
Files may not be accessible if they are read-only, or if the directory is read-only, or ... whatever. So, let the caller handle IOException in DataWriter. Return a set if it can be read. Do some misc cleanups (remove unused imports, fix docs, remove obsolete TODOs).
2014-05-02Basic stats for tweetsPeter Wu2-0/+39
2014-05-02Fix enabled targets print, allow multiple args, improve helpPeter Wu1-4/+10
2014-05-02Persist a single set of targets for all streamsPeter Wu1-31/+32
* Split ResultListener and ExceptionListener implementation, the methods turns out not to be closely related. * Extract CompositeResultListener from Stream, making TweetShell own it, this simplifies code and allows you to have targets even if no stream is instantiated.
2014-05-02Allow multiple targets to be enabled/disabledPeter Wu1-28/+122
2014-05-02Show hint if no keywords are addedPeter Wu1-1/+5
2014-05-02Add "?" alias for "help"Peter Wu1-1/+5
2014-05-01Add command to print active keywordsPeter Wu1-0/+22
2014-05-01Prettify prompt, fix target paramPeter Wu1-2/+7
2014-05-01StreamHandler now outputs the tweet detailsPeter Wu1-2/+17
2014-05-01Get rid of unused and broken poll functionPeter Wu1-4/+0
2014-05-01Do not destroy the old file...Peter Wu1-6/+6
2014-05-01Moved setting the default values.Maurice Laveaux1-4/+2
* Moved from TweetShell to Configuration.
2014-05-01Added the target command with options: file, shell.Maurice Laveaux1-7/+39
* Implemented target file, which uses DataWriter as RequestListener which writes the tweets and profiles. * Added profiles-filename, tweets-filename to the config.
2014-05-01Allow result and exception handler to be changedPeter Wu1-1/+6
2014-05-01[WIP] Initial hacky TweetShellPeter Wu2-0/+226
In TESTING! DefaultOAuthConsumer does not play nice with POST requests... need to fix that somehow.
2014-04-30Drop shit from mainPeter Wu1-25/+0
2014-04-30Stream interfacePeter Wu1-45/+0
2014-04-30main: search english tweetsPeter Wu1-0/+1
2014-04-30main: simple cmd to search for tweetsPeter Wu1-0/+22
2014-04-30Add feature to test a URLPeter Wu1-1/+25
2014-04-28First commit for all classes that require implementation for streaming.Maurice Laveaux1-4/+39
* TODO: implement OAuthStream and StreamCommand.
2014-04-25Main: get tweetPeter Wu1-0/+5
2014-04-25Merge branch 'master' of git.lekensteyn.nl:tue/2IOC0-DBL/TwitterDataAnalyticsMaurice Laveaux1-1/+1
2014-04-25Merged and resolved conflicts.Maurice Laveaux1-6/+146
* No functionality of Command is currently used.
2014-04-25Added the functionality to execute and parse commands.Maurice Laveaux6-12/+314
* CommandParser can parse input strings to RequestCommand. * CommandQueue will execute all ICommands in a queue. * TODO: StreamCommands, database implementation. * RequestCommand writes into database.txt
2014-04-25Main is a command line program nowPeter Wu1-9/+134
Test with: ./run.sh
2014-04-25Remove obsolete classesPeter Wu1-2/+0
The new TwitterAPI class should be used to dispatch requests.
2014-04-24Example that demonstrates fetching profile informationPeter Wu1-1/+14
2014-04-23Some small bugfixes for the initial program.Maurice Laveaux1-3/+3
* Set main.Main as main class. * Fixed a little typo in Authentication. * added throws IOException to main.
2014-04-23Implemented Authorization with twitter.Maurice Laveaux1-0/+14
Started working on getProfile for a given username.