eksi_scrape_topic: Scrape all entries inside a topic

Description Usage Arguments Value Examples

Description

Scrape all entries inside a topic

Usage

1
2
eksi_scrape_topic(topic_url, user_agent = curl_user_agent,
  export_csv = FALSE, sleep_time = 0.05)

Arguments

topic_url

Character.

user_agent

haracter. Used to set the user header string in the cURL request. As default, a generic one provided as per https://stackoverflow.com/a/31597823; however, users can provide a custom user agent.

export_csv

Logical. If **TRUE** exports the tibble to a csv file with topic title.

sleep_time

Numeric. A value to set Sys.sleep. Useful to not overwhelm the servers when scraping at scale. Defaults to 0.05.

Value

Always returns a tibble with same columns. Scrapes all current entires in all pages of the topic.

Examples

1
scrape_topic(https://eksisozluk.com/tayyip-erdogan-fatih-sarac-ses-kaydi--4224837, export_csv=T)

sefabey/eksiR documentation built on May 24, 2019, 1:34 a.m.