{"id":22966713,"url":"https://github.com/favstats/untruthr","last_synced_at":"2025-04-19T15:09:50.225Z","repository":{"id":52410309,"uuid":"520961422","full_name":"favstats/untruthr","owner":"favstats","description":"The goal of untruthr is to provide a scraper for the social networking app Truth Social","archived":false,"fork":false,"pushed_at":"2022-12-03T03:44:49.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:11:38.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/favstats.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-03T16:49:48.000Z","updated_at":"2025-03-04T16:36:06.000Z","dependencies_parsed_at":"2023-01-23T04:15:54.589Z","dependency_job_id":null,"html_url":"https://github.com/favstats/untruthr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favstats%2Funtruthr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favstats%2Funtruthr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favstats%2Funtruthr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favstats%2Funtruthr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/favstats","download_url":"https://codeload.github.com/favstats/untruthr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249722711,"owners_count":21315873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T20:45:18.087Z","updated_at":"2025-04-19T15:09:50.219Z","avatar_url":"https://github.com/favstats.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# untruthr\n\n\u003c!-- badges: start --\u003e\n\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/untruthr)](https://CRAN.R-project.org/package=untruthr)\n\n\u003c!-- badges: end --\u003e\n\nThe goal of `untruthr` is to provide access to the social networking website [Truth Social](https://truthsocial.com/)\n\n## Installation\n\nYou can install the development version of `untruthr` like so:\n\n``` r\nremotes::install_github(\"favstats/untruthr\")\n```\n\n## Example\n\nFirst load in R package\n\n```{r example}\nlibrary(untruthr)\n## basic example code\n```\n\n## Authentication\n\nAuthenticate yourself with `untruth_auth`. Note: you require a Truth Social account for this.\n\nSet the following environment variables (note it's best to type this into your console so you don't create a script with your valuable login details):\n\n```{r, eval = F}\n## NOTE: Client ID and Client Secret seem to be the same for every single user\nset_renv(truth_social_client_id=\"9X1Fdd-pxNsAgEDNi_SfhJWi8T-vLuV2WVzKIbkTCw4\")\nset_renv(truth_social_client_secret=\"ozF8jzI4968oTKFkEnsBC-UbLPCdrSv0MkXGQu2o_-M\")\n## is that safe? I don't know but I also don't have a social media platform sooo..\n```\n\n\n```{r, eval = F}\n## set your user handle and pw here:\nset_renv(truth_social_user=\"YOUR_USER_HANDLE\")\nset_renv(truth_social_pw=\"YOUR_PW\")\n\n```\n\nOnce you are done, run `untruth_auth`.\n\n```{r, eval = F}\nuntruth_auth()\n```\n\nNow you can use `untruthr`. Note: you only need to authenticate once. You only have to redo this once your token becomes stale, which does not seem to happen very often. It seems like the token is active for a few days at least. Will update once I know more.\n\n## Get trending hashtags\n\n```{r}\nuntruth_trends()\n```\n\n## Get trending statuses\n\n```{r}\nuntruth_trends(type = \"truths\")\n```\n\n## Get statuses from account\n\nIn this case we are getting the 40 last \"truths\" from Donald Trump\n\n```{r}\n# debugonce(untruth_user_statuses)\nuntruth_user_statuses(\"realdonaldtrump\", size = 40)\n\n\n```\n\n## Search for statuses containing keywords\n\n```{r}\nuntruth_search(\"qanon\", search_type = \"statuses\", size = 40)\n```\n\n## Search for accounts containing keywords\n\n```{r}\n# debugonce(untruth_search)\nuntruth_search(\"qanon\", search_type = \"accounts\", size = 40)\n```\n\n## Lookup user ids (and other info) about users\n\n```{r}\nuntruth_lookup_users(\"realdonaldtrump\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffavstats%2Funtruthr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffavstats%2Funtruthr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffavstats%2Funtruthr/lists"}