filter_urls: Filter URLs in the provided database based on topic, country...

View source: R/filter_urls.R

filter_urlsR Documentation

Filter URLs in the provided database based on topic, country and language

Description

Filter URLs in the provided database based on topic, country and language

Usage

filter_urls(
  topic = NULL,
  country = NULL,
  language = NULL,
  rss_table = package_rss
)

Arguments

topic

the topic of the feed see show_topics() for more info.

country

the country of origin of the feed using two capital letters, for example "US". See show_countries() for more info.

language

the language of the content of the feed using two lowercase letters, for example "en". See show_languages() for more info.

rss_table

a dataframe with urls and rss feeds in case you need to construct your own out of websites not in the included database. Be sure to have the same format as the included data. See package_rss.R for details.

Value

a tibble filtered according to the given parameters

Examples

filter_urls(topic = "tech", country = "US", language = "en")

newscatcheR documentation built on April 30, 2022, 1:05 a.m.