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 )