Louis Vallat
ec67b3d43a
added an 'undetermined' category of reddit posts as some subs don't have post_hint value, used to determine if a post is an image or a video for example. this fixes a but where all of these posts that don't have a post_hint value (quite a lot) would simply be ignored by the system
2020-08-26 23:24:00 +02:00
Louis Vallat
12b2a4f723
added Dockerfile
2020-05-11 13:58:56 +02:00
Louis Vallat
67d607ad36
fixed README to comply to Markdown standards
2020-03-23 08:12:43 +01:00
Louis Vallat
a3f4c5688a
refactored everything and moved the project into a Maven project, that can be built easily, and removed a json call that was deprecated
2020-03-22 20:03:01 +01:00
Louis Vallat
b0e6f33b87
fixed errors on parsing text due to JSON legacy compatibilities process in the REDDIT JSON API.
...
from https://www.reddit.com/dev/api : "response body encoding
For legacy reasons, all JSON response bodies currently have <, >, and & replaced with <, >, and &, respectively. If you wish to opt out of this behaviour, add a raw_json=1 parameter to your request."
2019-08-06 11:22:38 +02:00
Louis Vallat
f2259f82d7
Renamed the main file
2019-07-15 21:54:50 +02:00
Louis Vallat
ed90b8a768
Changed the name for the whole project
2019-07-15 21:13:32 +02:00
Louis Vallat
94550197e2
Update README.md
2019-06-17 19:55:14 +02:00
Louis Vallat
a5692db5b8
attempt to fix a memory leak
2019-05-03 23:27:54 +02:00
Louis Vallat
1ce343d523
minor update, more code optimization
2019-05-02 16:07:56 +02:00
Louis Vallat
930306a581
Update Hypervisor.java
2019-04-27 10:57:08 +02:00
Louis Vallat
3438370544
minor memory optimizations
...
there are memory leaks in the code but I can't find where.
2019-04-27 10:55:34 +02:00
Louis Vallat
0afc9e05ba
Update TwitterTechSupportGoreBot.java
...
added version logging
2019-04-27 00:44:00 +02:00
Louis Vallat
b3af1f7982
huge refactor
...
hypervisor now don't rely on collections but only on the SQLite database for saving what post it has computed. It saves each post after each post, and marks it as shared before sharing it so if something bad happens, then it won't crash on it again. RAM usage has been improved too. After 8hrs running, it used more than 1GB. Now it barely uses more than 50MB.
Added a try catch for null pointer exception so it won't crash if a part of the JSON is missing. It'll just continue and don't compute this reddit post.
2019-04-27 00:37:32 +02:00
Louis Vallat
a2c7c4d8da
MAJOR BUG FIX
...
logs are so powerful you can't mess with them
2019-04-26 00:19:36 +02:00
Louis Vallat
5c762ed6ee
finished version 0.9
...
everything is working fine and can be used in testing environnement as it hasn't been tested long enough for being safely deployed in production environnement
2019-04-25 17:24:49 +02:00
Louis Vallat
ae1765851b
Created the Hyervisor
2019-04-24 11:26:16 +02:00
Louis Vallat
105b59abf8
Added reddit extractor and subreddit ojects
...
it can now parse and extract everything we need from Reddit and create Reddit posts objects that corresponds to the given object.
2019-04-24 10:39:55 +02:00
Louis Vallat
1a7e8c88cc
added support for "isXXX"
...
is text ? image ? link ? video ?
2019-04-23 12:15:51 +02:00
Louis Vallat
97624621ae
Update RedditPost.java
...
updated newScore type from int to double
2019-04-23 12:01:44 +02:00
Louis Vallat
4f790f7c61
updated javadoc for RedditPost.java
2019-04-23 12:00:55 +02:00
Louis Vallat
51bbc2fee6
added postId support in subclasses
2019-04-23 11:51:56 +02:00
Louis Vallat
433f677749
added postId support
2019-04-23 11:49:47 +02:00
Louis Vallat
769c9d5793
added main skeleton for RedditHandler
2019-04-23 11:45:31 +02:00
Louis Vallat
520a2ee598
Added parser prototype
...
this is a prototype for the JSON parser.
Not fully fonctionnal (bunch of NullPointerException)
2019-04-23 10:35:02 +02:00
Louis Vallat
f42d4c81fd
Created main NetBeans project
...
- created main netbeans project
- added license header in project properties
- added main class
2019-04-22 17:30:34 +02:00
Louis Vallat
47dfec69b9
Initial commit
2019-04-22 17:22:14 +02:00