nwd_extract_urls_from_tweets: Extract links from tweets and expands shortened urls

Description Usage Arguments Value

View source: R/extract_urls_from_tweets.R

Description

Extract links from tweets and expands shortened urls

Usage

1
2
3
4
5
6
7
8
nwd_extract_urls_from_tweets(
  tweets = NULL,
  language = NULL,
  date = NULL,
  expand_url = TRUE,
  n_char = 30,
  n_retry = 3
)

Arguments

tweets

A data frame of tweets, as created by 'rtweet'. If not given, it processes tweets available in 'tweets' subfolder.

n_char

An integer, defaults to 30. Number of characters in the url: only urls shorter than n_char will be expanded, others will be kept as they are.

n_retry

An integer, defaults to 3. Number of times it tries to expand urls if first attempt fails. Set to 0 for attempting only once.

Value

Nothing, used for its side effects, i.e. stores expanded urls in 'tweet_links' subfolder.


giocomai/networkedwebsitesdetector documentation built on Jan. 22, 2021, 5:42 p.m.