Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/news-r/hoaxy
🤥 Visualizes the spread of claims and related fact checking online.
https://github.com/news-r/hoaxy
fake-news r rstats
Last synced: 8 days ago
JSON representation
🤥 Visualizes the spread of claims and related fact checking online.
- Host: GitHub
- URL: https://github.com/news-r/hoaxy
- Owner: news-r
- License: other
- Created: 2019-06-16T16:27:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-25T07:48:34.000Z (over 5 years ago)
- Last Synced: 2024-08-13T07:15:39.874Z (4 months ago)
- Topics: fake-news, r, rstats
- Language: R
- Homepage:
- Size: 201 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - news-r/hoaxy - 🤥 Visualizes the spread of claims and related fact checking online. (R)
README
---
output:
github_document:
html_preview: false
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```[![Travis build status](https://travis-ci.org/news-r/hoaxy.svg?branch=master)](https://travis-ci.org/news-r/hoaxy)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/news-r/hoaxy?branch=master&svg=true)](https://ci.appveyor.com/project/news-r/hoaxy)# hoaxy
[Hoaxy](https://rapidapi.com/truthy/api/hoaxy) visualizes the spread of claims and related fact checking online. A claim may be a fake news article, hoax, rumor, conspiracy theory, satire, or even an accurate report. Anyone can use Hoaxy to explore how claims spread across social media. You can select any matching fact-checking articles to observe how those spread as well.
## Installation
``` r
# install.packages("remotes")
remotes::install_github("news-r/hoaxy")
```## Calls
- `hx_articles` - Get fake articles on a specific query.
- `hx_tweets` - Get tweets on specific articles.
- `hx_edges` - Get network of tweets on specific articles.
- `hx_timeline` - Get timeline of tweets on specific articles.
- `hx_spreaders` - Get top Twitter users.
- `hx_top_articles` - Get top articles.
- `hx_latest_articles` - Get latest fake news.## Setup
Create a free account at [rapidapi.com](https://rapidapi.com/truthy/api/hoaxy) to create an API key.
```r
hoaxy_key("xxXXxxXx")
```Note that you can specify the `RAPIDAPI_API_KEY` key as an environment variable in your `.Renviron` for convenience.
## Example
Get fake articles.
```{r}
library(hoaxy)(articles <- hx_articles("pizzagate"))
```Get tweets on some of said articles.
```{r}
(tweets <- hx_tweets(articles$id[1:5]))
```Get network of tweets on articles.
```r
(edges <- hx_edges(articles$id[1:5]))plot(edges)
```![](plot.png)