项目作者: christinesfkao

项目描述 :
Grepping keywords from tweets provided by Twitter
高级语言: R
项目地址: git://github.com/christinesfkao/tweet-keywords.git
创建时间: 2020-09-04T09:46:44Z
项目社区:https://github.com/christinesfkao/tweet-keywords

开源协议:

下载


README.md

This is the README file for tweet-keywords.

Author: @christinesfkao

MMM/YYYY: Sep 2020

Synopsis

  1. Rscript grep_keywords.R

This R script helps grepping keywords from tweets provided by the Information Operations of Twitter.

Things to do before running

  • copy and paste all the links of .zip files you would like to download into url.txt, one url for each line
  • make your own list of keywords to keywords.txt, one keyword for each line
  • put url.txt and keywords.txt into the directory /tweet-keywords

System requirements

  • R version 3.5.1+
  • Packages to install
    • data.table
    • bit64

Directory

  1. tweets/ <all given input files>
  2. outputs/ <all output files>
  3. grep_keywords.R
  4. url.txt <Example: All "tweet information" link locations, updated Sep 5th, 2020>
  5. README.md

Run

  1. cd tweet-keywords/tweets
  2. wget -i ../url.txt
  3. unzip '*.zip'
  4. Rscript ../grep_keywords.R