CorentinB / gabber

Simple tool to pull posts and users from Gab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gabber

Simple tool to pull posts and users from Gab.

Usage

Usage: gabber [OPTIONS] COMMAND [ARGS]...

Options:
  --user TEXT        Username to gab.com account. Required to pull posts. If
                     unspecified, uses GAB_USER environment variable.
  --password TEXT    Password to gab.com account. Required to pull posts. If
                     unspecified, uses GAB_PASS environment variable.
  --threads INTEGER  Number of threads to use in the pull (if unspecified,
                     defaults to 25).
  --help             Show this message and exit.

Commands:
  groups  Pull groups and (optionally) their posts from Gab.
  posts   Pull users and (optionally) posts from Gab.

posts

Usage: gabber posts [OPTIONS]

  Pull users and (optionally) posts from Gab.

Options:
  --users-file TEXT              Where to output the user file to.
  --posts-file TEXT              Where to output the posts file to.
  --first INTEGER                The first user ID to pull.
  --last INTEGER                 The last user ID to pull.
  --created-after FROMISOFORMAT  Only pull posts created on or after the
                                 specified date, e.g. 2021-10-02 (defaults to
                                 none).
  --posts / --no-posts           Pull posts (WIP; defaults to no posts).
  --replies / --no-replies       Include replies when pulling posts (defaults
                                 to no replies)
  --help                         Show this message and exit.

groups

Usage: gabber groups [OPTIONS]

  Pull groups and (optionally) their posts from Gab.

Options:
  --groups-file TEXT    Where to output the groups file to.
  --posts-file TEXT     Where to output the posts file to.
  --first INTEGER       The first group ID to pull.
  --last INTEGER        The last group ID to pull.
  --posts / --no-posts  Pull posts.
  --help                Show this message and exit.

Environment Variables

  • HTTP_PROXY — route all traffic through this HTTP proxy (highly recommended given Gab's rate limiting)
  • HTTPS_PROXY — route all traffic through this HTTPS proxy (highly recommended given Gab's rate limiting)

Development

To run Gabber in a development environment, you'll need Poetry. Install the dependencies by running poetry install, and then you're all set to work on Gabber locally.

To access the CLI, run poetry run gabber.

About

Simple tool to pull posts and users from Gab


Languages

Language:Python 100.0%