https://github.com/chainsawriot/fodira
Impliziter und expliziter Rassismus in Nachrichtenmedien und sozialen Medien: Ausmaß und Wirkung
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
Repository
Impliziter und expliziter Rassismus in Nachrichtenmedien und sozialen Medien: Ausmaß und Wirkung
Basic Info
- Host: GitHub
- Owner: chainsawriot
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://www.mzes.uni-mannheim.de/de/projekte/translate-to-german-detail/impliziter-und-expliziter-rassismus-in-nachrichtenmedien-und-sozialen-medien
- Size: 2.19 MB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 11
- Releases: 0
Metadata Files
README.md
Data collection scripts for FoDiRa
envvars
The project depends on the following envvars. Please set these envvars in the *rc file
TWITTER_BEARER: Twitter Bearer TokenTWEET_DB: Absolute path to the DuckDB file holding all tweetsARTICLE_DIR: Absolute path to the temporary directory holding html filesFODIRA_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.
- 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
- 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
- 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
- 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'))"
- 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
- Website: http://www.chainsawriot.com
- Repositories: 241
- Profile: https://github.com/chainsawriot
GitHub Events
Total
- Watch event: 2
- Push event: 1
Last Year
- Watch event: 2
- Push event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | 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
Pull Request Labels
Dependencies
- httr * imports
- testthat >= 3.0.0 suggests
- @mozilla/readability ^0.4.2
- linkedom ^0.14.12
- 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
- rocker/tidyverse latest build