sort_reviews: Sort reviews

sort_reviewsR Documentation

Sort reviews

Description

Sort reviews

Usage

sort_reviews(
  client,
  using = "xpath",
  value_sort_btn = "//button[@data-value='Sort']",
  value_sort_options = "//div[@role='menuitemradio']",
  sleep = 1,
  sort_index = 2
)

Arguments

client

RSelenium client.

using

String with "css" or "xpath".

value_sort_btn

String with css tag or xpath for the Sort button.

value_sort_options

String with css tag or xpath for the Sort options.

sleep

Integer with number of seconds to use as pause between actions on the web page.

sort_index

Integer with the index of the sorting order of the reviews: 1 ("Most Relevant"), 2 ("Newest"), 3 ("Highest rating"), 4 ("Lowest rating")


villegar/scrappy documentation built on Jan. 25, 2024, 4:38 p.m.