4pr0n / gonewilder

GNU General Public License v2.0
32 stars 11 forks source link

Support Full Comment Logging #15

Closed ohhdemgirls closed 10 years ago

ohhdemgirls commented 10 years ago

Log user comments in full by default, log to /content/user/comments.txt

Note post/comment ID's with comments.

4pr0n commented 10 years ago

Added functionality in https://github.com/4pr0n/gonewilder/commit/5fa08996ae78c4371f458a6c286bf4f7421a0dd9

The script already catalogs every post/comment in the database. I don't like the idea of duplicating the data both in the database and in a separate file...

There are now command-line options to dump the contents of these to stdout (console).

You can generate the file yourself via the shell:

./Gonewild.py --comments gingerpuss > comments_by_gingerpuss.txt
4pr0n commented 10 years ago

Also works for --posts. Sample output:

% ./Gonewild.py --posts <user>
Permalink: http://reddit.com/r/Sexy_Facebook_Girls/comments/21wf3s
    Title: test
 Url/Text: http://imgur.com/a/Ox6jN
     Date: 14-04-01T05:34:41Z
    Votes: +1/-0
./Gonewild.py --comments <user>
Permalink: http://reddit.com/r/lips/comments/222oo9/_/cgiu8ka
     Date: 14-04-03T05:23:23Z
    Votes: +2/-0
  Comment: You should see what it can do ;)