Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Truthbrush is an API client for Truth Social. Truthbrush is built and maintained by the Stanford Internet Observatory.
Currently, this tool can:
Truthbrush is designed for academic research, open source intelligence gathering, and data archival. It pulls all data from the publicly accessible API.
Truthbrush is not yet available on PyPI. To install it, run pip install git+https://github.com/stanfordio/truthbrush.git
, or clone the repository and run pip3 install .
. Provided your pip
is setup correctly, this will make truthbrush
available both as a command and as a Python package. Note that Truthbrush requires Python 3.9 or higher.
After installation, you will need to set your Truth Social username and password as environmental variables.
export TRUTHSOCIAL_USERNAME=foo
export TRUTHSOCIAL_PASSWORD=bar
You may also set these variables in a .env
file in the directory from which you are running Truthbrush.
Usage: truthbrush [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
search Search for users, statuses or hashtags.
statuses Pull a user's statuses.
suggestions Pull the list of suggested users.
tags Pull trendy tags.
trends Pull trendy Truths.
ads Pull ads.
user Pull a user's metadata.
likes Pull the list of users who liked a post
comments Pull the list of oldest comments on a post
groupposts Pull posts from a groups's timeline
grouptags Pull trending group tags.
grouptrends Pull trending groups.
groupsuggestions Pull list of suggested groups.
Search for users, statuses, groups, or hashtags
truthbrush search --searchtype [accounts|statuses|hashtags|groups] QUERY
Pull all statuses (posts) from a user
truthbrush statuses HANDLE
Pull "People to Follow" (suggested) users
truthbrush suggestions
Pull trendy tags
truthbrush tags
Pull ads
truthbrush ads
Pull all of a user's metadata
truthbrush user HANDLE
Pull the list of users who liked a post
truthbrush likes POST --includeall TOP_NUM
Pull the list of oldest comments on a post
truthbrush comments POST --includeall --onlyfirst TOP_NUM
Pull trending group tags
truthbrush grouptags
Pull trending groups
truthbrush grouptrends
Pull list of suggested groups
truthbrush groupsuggestions
Pull posts from a group's timeline
truthbrush groupposts GROUP_ID
Contributions are encouraged! For small bug fixes and minor improvements, feel free to just open a PR. For larger changes, please open an issue first so that other contributors can discuss your plan, avoid duplicated work, and ensure it aligns with the goals of the project. Be sure to also follow the code of conduct. Thanks!
Development setup (ensure you have Poetry installed):
poetry install
poetry shell
truthbrush --help # will use your local copy of truthbrush
If you prefer not to install Poetry in your root environment, you can also use Conda:
conda create -n truthbrush-env python=3.9
conda activate truthbrush-env
conda install -c conda-forge poetry
poetry install
To run the tests:
pytest
# optionally run tests with verbose logging outputs:
pytest --log-cli-level=DEBUG -s
Please format your code with black
:
black .
Support for the following capabilities is planned:
FAQs
API client for Truth Social
We found that truthbrush demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.