Skip to content

Alfa-Q/rlgpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rlgpy

Build Status codecov Codacy Badge

Rocket League Garage python package for retrieving trade, item, and achievement data in JSON format.


Features

  • Scrape trade data with options to use a custom URL containing trade information.
  • Scrape Rocket League item data.
  • Achievement data.

Due to Google captcha built-into the page, adding and auto-bumping trades is not possible. It could be done using Selenium, but for the purposes of this package I have decided to just leave it as a data extractor.


Examples of basic usage

  from rlgpy.api import RocketLeagueGarage

  # Each call returns a list of the data in JSON format.
  item_data  = RocketLeagueGarage.get_items()
  trade_data = RocketLeagueGarage.get_trades()
  achievement_data = RocketLeagueGarage.get_achievements()

  # Trade data can be extracted from any page containing trades!
  # Example using page with filter parameters in the URL:
  url = 'https://rocket-league.com/trading?filterItem=1709&filterCertification=0&filterPaint=0&filterPlatform=0&filterSearchType=1'
  trade_data = RocketLeagueGarage.get_trades(url=url)

  # Example using page of someone's profile:
  url = 'https://rocket-league.com/trades/KizunaAi'
  trade_data = RocketLeagueGarage.get_trades(url=url)