Skip to content

Scraping search results from tripAdvisor using rvest package

Notifications You must be signed in to change notification settings

OmaymaS/Web-Scraping-TripAdvisor-Data-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

###Overview

This script scraps search results from TripAdvisor and extracts some relevent data using rvest package created by [Hadley Wickham] (https://github.com/hadley). Here, the search results are for restaurants in Cologne-Germany (which could be replaced by another city).

The script:

  • takes the URL of the first page and loop through the pages to extract the names and URLs of all the restaurants.

  • loops through the restaurants' URLs, parse each HTML page and extract some data if available:

  • Number of reviews

  • Number of photos

  • Stars/Rating

  • Cuisine

  • Nearby restaurants

About

Scraping search results from tripAdvisor using rvest package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages