Skip to content

Commit

Permalink
Update selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mguideng committed Jul 6, 2019
1 parent ad43f38 commit 0a09ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_reviews.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ get_reviews <- function(companyNum) {
rev.title = html_text(html_nodes(pg, "span.authorInfo.tbl.hideHH")),
rev.pros = collapse_html_text(html_nodes(pg, ".description .row:nth-child(1) .mainText:not([class*='toggleBodyOff'])")),
rev.cons = collapse_html_text(html_nodes(pg, ".description .row:nth-child(2) .mainText:not([class*='toggleBodyOff'])")),
rev.helpf = html_text(html_nodes(pg, ".tight")),
rev.helpf = html_text(html_nodes(pg, ".css-otjqal")),
source.url = paste(baseurl, companyNum, "_P", i, sort, sep = ""),
source.link = html_attr(html_nodes(pg, ".reviewLink"), "href"),
source.iden = html_attr(html_nodes(pg, ".empReview"), "id"),
Expand All @@ -78,7 +78,7 @@ get_reviews <- function(companyNum) {
rev.title = html_text(html_nodes(pg, ".authorInfo")),
rev.pros = collapse_html_text(html_nodes(pg, ".mt-md:nth-child(1) p:nth-child(2)")),
rev.cons = collapse_html_text(html_nodes(pg, ".mt-md:nth-child(2) p:nth-child(2)")),
rev.helpf = html_text(html_nodes(pg, ".tight")),
rev.helpf = html_text(html_nodes(pg, ".css-otjqal")),
source.url = paste(baseurl, companyNum, "_P", i, sort, sep = ""),
source.link = html_attr(html_nodes(pg, ".reviewLink"), "href"),
source.iden = html_attr(html_nodes(pg, ".empReview"), "id"),
Expand Down

0 comments on commit 0a09ee0

Please sign in to comment.