rlgpy
1.0.0
Rocket League Garage python 套件用於檢索 JSON 格式的交易、物品和成就資料。
由於頁面內建了 Google 驗證碼,因此無法新增和自動碰撞交易。可以使用 Selenium 來完成,但出於此套件的目的,我決定將其保留為資料提取器。
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 )