https://github.com/chainsawriot/fodira

Impliziter und expliziter Rassismus in Nachrichtenmedien und sozialen Medien: Ausmaß und Wirkung

https://github.com/chainsawriot/fodira

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Impliziter und expliziter Rassismus in Nachrichtenmedien und sozialen Medien: Ausmaß und Wirkung

Basic Info
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • Open Issues: 11
  • Releases: 0
Created about 4 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Data collection scripts for FoDiRa

R-CMD-check <!-- badges: end -->

envvars

The project depends on the following envvars. Please set these envvars in the *rc file

  1. TWITTER_BEARER: Twitter Bearer Token
  2. TWEET_DB: Absolute path to the DuckDB file holding all tweets
  3. ARTICLE_DIR: Absolute path to the temporary directory holding html files
  4. FODIRA_HOST: For workers: ssh server string

The project needs R (for most of the data collection) and node (for readability).

Server/worker setup guide

It is better to use Ubuntu 20.04 LTS at the moment, due to the installation issues of MongoDB on 22.04 LTS.

  1. System dependecies

sh sudo apt update -qq sudo apt install libcurl4-openssl-dev libssl-dev libxml2-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libssl-dev libsasl2-dev software-properties-common dirmngr libssh-dev -y

  1. R packages

DON'T USE THE r-core provided by Ubuntu; it is currently version pre-4 (#14)

Install R according to this guide

From the guide:

```sh

update indices

wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutterpubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cranubuntu_key.asc

add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed

sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" -y sudo apt install --no-install-recommends r-base-dev -y ```

And then

r install.packages(c("tidyverse", "rio", "remotes", "tidyRSS", "mongolite", "docopt")) remotes::install_github("chainsawriot/fodira")

Installation of MongoDB (Server only)

Install Mongodb according to this guide

sh sudo mkdir /data/mongodb sudo chown -R mongodb:mongodb /data/mongodb

Edit the config file /etc/mongod.conf to point dbPath to /data/mongodb

Start the service

sh sudo systemctl enable mongod

DO Spaces

HTML files are uploaded to Digital Ocean Spaces. And that requires s3cmd.

sh sudo apt-get install s3cmd

Please set it up according to the guide provided by Digital Ocean.

Page scraping

  1. Install Firefox

DON'T USE THE SNAP PACKAGE

Install Firefox from the offical Mozilla PPA

sh sudo add-apt-repository ppa:mozillateam/ppa sudo apt install firefox firefox --version # testing

  1. Install JRE, JDK, and rJava

sh sudo apt-get install -y default-jre sudo apt-get install -y default-jdk sudo R CMD javareconf Rscript -e "install.packages(c('rJava', 'RSelenium'))"

  1. Install the RSelenium binary

```R ff_options <- list("moz:firefoxOptions" = list(args = list('--headless')))

rD <- RSelenium::rsDriver(browser = "firefox", port = sample(c(5678L, 5679L, 5680L, 5681L, 5682L), size = 1), check = TRUE, verbose = FALSE, extraCapabilities = ff_options)

rD <- RSelenium::rsDriver(browser = "firefox", port = sample(c(5678L, 5679L, 5680L, 5681L, 5682L), size = 1), check = TRUE, verbose = TRUE,

extraCapabilities = ff_options)

becareful of this issue

https://github.com/ropensci/wdman/issues/31#issuecomment-1336651660

z <- rD$server$stop() ```

Owner

  • Login: chainsawriot
  • Kind: user
  • Location: Germany
  • Company: @gesistsa

GitHub Events

Total
  • Watch event: 2
  • Push event: 1
Last Year
  • Watch event: 2
  • Push event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 72
  • Total Committers: 1
  • Avg Commits per committer: 72.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
chainsawriot c****y@g****m 72

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 27
  • Total pull requests: 15
  • Average time to close issues: 12 days
  • Average time to close pull requests: 6 minutes
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 1.19
  • Average comments per pull request: 0.0
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • chainsawriot (20)
Pull Request Authors
  • chainsawriot (12)
  • Rainer-Freudenthaler (1)
Top Labels
Issue Labels
db (3) infra (2)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • httr * imports
  • testthat >= 3.0.0 suggests
purify/package.json npm
  • @mozilla/readability ^0.4.2
  • linkedom ^0.14.12
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
docker/Dockerfile docker
  • rocker/tidyverse latest build