Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Trip Advisor dataset for Review Graph Mining Project

Project description

GPLv3 Build Status wercker status Release PyPi Japanese


For the Review Graph Mining project, this package provides a loader of the Trip Advisor dataset provided by Dr. Wang.


Use pip to install this package.

$ pip install --upgrade rgmining-tripadvisor-dataset

Note that this installation will download a big data file from the original web site.

This package uses bz2 internally. If your python doesn’t have that package (try import bz2), rebuild python before installation.


This package provides module tripadvisor and this module provides load function. The load function takes a graph object which implements the graph interface defined in Review Graph Mining project.

For example, the following code constructs a graph object provides the FRAUDAR algorithm, loads the Trip Advisor dataset, runs the algorithm, and then outputs names of anomalous reviewers. Since this dataset consists of huge reviews, loading may take long time.

import fraudar
import tripadvisor

# Construct a graph and load the dataset.
graph = fraudar.ReviewGraph()

# Run the analyzing algorithm.

# Print names of reviewers who are judged as anomalous.
for r in graph.reviewers:
  if r.anomalous_score == 1:

# The number of reviewers the dataset has: -> 1169456.

# The number of reviewers judged as anomalous: -> 147.
len([r for r in graph.reviewers if r.anomalous_score == 1])

Note that you may need to install the FRAUDAR algorithm for the Review Mining Project by pip install rgmining-fraudar.


This software is released under The GNU General Public License Version 3, see COPYING for more detail.

The authors of the Trip Advisor dataset, which this software imports, requires to cite the following papers when you publish research papers using this package:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rgmining-tripadvisor-dataset, version 0.5.6
Filename, size File type Python version Upload date Hashes
Filename, size rgmining-tripadvisor-dataset-0.5.6.tar.gz (56.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page