Git Product home page Git Product logo

gt-scrape's Introduction

Gran Turismo Scrape

Utilities to scrape and analyze data about Gran Turismo 2.

My intent was to visualize some of the things I noticed in the game:

  • large skew towards Japanese cars (both in terms of total cars, and prize cars)
  • large skew towards 90's cars

Both of these properties are not to be unexpected coming from a Japanese game development company in 99, yet I still wanted to show it through data.

Peek at data

Table with all car information available in GT2 Wiki

Car List Dataframe

Plot showing the distribution of all cars, and also prize cars, per manufacturing country (see gt/clean.py to see how to clean the information to be able to plot this):

Distribution of Cars per Manufacturing Country

Download data

Currently hosting scraped data on Dropbox:

  • 2020-09-23 V2: dropbox download
    • added clean table "cars-clean.csv"
    • cleaned the following fields:
      • str to int: height, width, length, displacement, max power, power weight ratio, weight
      • str to str: drivetrain
    • added new fields:
      • "Country" and "Continent" of origin
      • "IsPrizeCar": is the car a prize car
      • "IsRaceModifiable": is the car race modifiable
      • "Date": manufacturing date
  • 2020-09-12 V1: dropbox download

Installation instructions

Assuming you use conda, and create a conda environment called gt:

conda create --name gt python=3.6
conda activate gt
conda install -c conda-forge --file requirements.txt

Notes

  • I used jupytext to convert my jupyter notebook to .py file, this is very convenient as it is way more git friendly / allows much easier version control.
  • I learned scraping from the following blog post introducing to beautiful soup.

gt-scrape's People

Contributors

naifrec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.