Skip to main content

Gabber is a tool for scraping and analyzing Gab posts.

Project description

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.
  users   Pull users and (optionally) posts from Gab.

users

Usage: gabber users [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. Can pull at most 250
  pages of posts per group (5000 posts).

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.
  --depth INTEGER       How many pages of posts to retrieve.
  --posts / --no-posts  Pull posts.
  --help                Show this message and exit.

followers and following

Usage: gabber [followers|following] [OPTIONS]

  Experimental feature: pull followers from a Gab account / pull list of accounts that a Gab account follows.

Options:
  --id INTEGER                User id from which to pull followers.
  --[followers|following]-file-path TEXT  Where to output the followers file to
  --help                      Show this message and exit.

Environment Variables

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

    • Note: if you have a pre-existing HTTP_PROXY environment variable, this may be picked up by Python's requests library and produce errors.
  • GAB_USER — the (optional) username to authenticate as with Gab

  • GAB_PASS — the (optional) password to use while authenticating with Gab

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gabber-0.2.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gabber-0.2.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file gabber-0.2.0.tar.gz.

File metadata

  • Download URL: gabber-0.2.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gabber-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ded5f74302f40bc73a8ae76bed7b3337c6aea829ea3d289c5398a193478cb9f4
MD5 2aaaa89f8daf884f312692acb0a6868f
BLAKE2b-256 6923aed499773a272f3ccbb72627e70ec95113a89a080c0f176f01153ce07f80

See more details on using hashes here.

Provenance

The following attestation bundles were made for gabber-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on stanfordio/gabber

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gabber-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gabber-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gabber-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7527f6c9414a2f2a4321f7ec580c448d828b1cdb9adeec34b06e269a0217832
MD5 68f90ffba191142a586582479106341a
BLAKE2b-256 eb930537df50c0e6b7ea55ea1ac214295b28775eeaa7adbe49ee9a5fa32a434d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gabber-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on stanfordio/gabber

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page