Icon

TripAdvisor_Review_Scraping .knar

Annotations and comments
  • Extract reviews from a TripAdvisor page Based on this forum post: https://forum.knime.com/t/selenium-nodes-all-loop-iterations-repeat-first-page-content/13563
  • The red variable connection serves as synchronization (ie. no data is actually passed) -- it ensures that click is only called, after the last node in the "Extract Review Details" meta node has finished execution Alternatively, you can use "Synchronize" nodes, which makes the workflow a bit more cluttered
  • page over reviews
  • User name
  • Rating
  • Date
  • Country
  • Gender
  • Trim the "X.X star rating" to just X.X
  • Trim the dates
  • Find Next Page Link
  • Extract review <div>
  • collect results
  • close+quit the web driver
  • Skip the first item (it's just a dummy)
  • open specific TripAdvisor page
  • make sure that page has loaded

Nodes

Extensions

Links