Ressenter is a command line tool to pull content from Dissenter.com, a browser-based social network operated by Gab.com. More recently, Dissenter has been integrated into the main Gab.com site as "Gab Trends".
This tool does not require any authentication with Dissenter or Gab; all the data it pulls is available publicly.
Currently, this tool can:
- Reliably pull all comments made on Dissenter within the last seven days
- Pull the current 'top' comments
- Pull the current 'controversial' comments
- Pull the current trending URLs
- Pull all the comments for a particular URL
- Pull all the comments made by a particular user
This tool uses Dissenter's public API. Because we have no insight into Dissenter's internals, there's no guarantee that this tool provides an exhaustive or reliable archive of Dissenter content.
For example, we don't know whether comments become inaccessible after some period of time, or whether there is a limit on how many comments we can pull from any particular user.
Usage: ressenter [OPTIONS] COMMAND [ARGS]...
Options:
--format [jsonl|csv] output format
--help Show this message and exit.
Commands:
comments Pull all the most recent comments
trending Pull the current trending URLs
url Pull comments for a particular URL.
user Pull all the comments of a particular user
Ressenter can output data to jsonl
and csv
(the default is jsonl
). Just pass the --format
option before the subcommand (e.g., ressenter --format=csv comments
). All data is currently written to stdout
; to save output to a file, use pipes (e.g., ressenter comments > comments.jsonl
).
Usage: ressenter comments [OPTIONS]
Pull all the most recent comments
Options:
--sort [latest|controversial|top]
comment sort order
--after-id TEXT pull no earlier than this comment ID
--after-time TEXT pull no comments posted earlier than this
time
--max INTEGER maximum number of comments to pull
--help Show this message and exit.
Usage: ressenter trending [OPTIONS]
Pull the current trending URLs
Options:
--help Show this message and exit.
Usage: ressenter url [OPTIONS] URL
Pull comments for a particular URL. Note that several comment metadata
items (such as upvotes, downvotes, and comments) are not available when
pulling comments from a URL.
Options:
--sort [latest|controversial|top]
comment sort order
--after-id TEXT pull no earlier than this comment ID
--after-time TEXT pull no comments posted earlier than this
time
--max INTEGER maximum number of comments to pull
--help Show this message and exit.
Usage: ressenter user [OPTIONS] USER
Pull all the comments of a particular user, identified by their UID
Options:
--sort [latest|controversial|top]
comment sort order
--after-id TEXT pull no earlier than this comment ID
--after-time TEXT pull no comments posted earlier than this
time
--max INTEGER maximum number of comments to pull
--help Show this message and exit.
Here are some common use cases:
ressenter comments
ressenter comments --sort=top
ressenter comments --sort=controversial
ressenter comments --after-time "one hour ago"
ressenter trending
ressenter url https://www.facebook.com
To use Ressenter as a Python module, just import it and setup a listener—a function that will be called on every result. You may also want to disable the standard output. For example:
import ressenter
results = []
ressenter.disable_standard_output()
ressenter.result_listeners.append(results.append)
ressenter.result_listeners.append(lambda k: print(f"Output: {k}"))
ressenter.comments()
print(f"Found {len(results)} results!")
All the commands are imported at the top-level namespace (e.g., ressenter.comments
, ressenter.trending
, ressenter.url
, ressenter.user
) and support the same arguments as their command-line equivalents. Consult the source code and the command-level docs for more information about the specific parameters supported.
To run Ressenter locally, perform the following steps:
- Install dependencies with
pipenv install
- Activate the virtual environment with
pipenv shell
- Run the tool using
main.py
-- for example,./main.py comments
- Make sure you have access to PyPI credentials with permission for the
ressenter
repository. - Clear the
dist/
folder (rm dist/*
). - Package everything with
python setup.py sdist bdist_wheel
. - Check the packaging with
twine check dist/*
. - Upload with
twine upload dist/*
.
If you work at the Stanford Internet Observatory, ping Miles McCain on Slack or via email to get help with Ressenter. To report bugs or submit feature requests, please open an issue.
There are a few features that this tool currently lacks, but that we'd like to add. We haven't yet found reliable ways to extract this data. (If you have, please let us know!)
- Find the most recent URLs commented on
- Iterate through all the URLs with comments
- Iterate through all comments, instead of just those made in the past seven days