Skip to main content

Ballchasing Scrape

Ballchasing_Scrape is a Python package for scraping information and stats from Rocket League replays hosted on ballchasing.com.

Installation

Use the pip to install Ballchasing_Scrape.

pip install ballchasing_scrape

Usage

Sample script collecting stats from replays uploaded by RLCS Referee on ballchasing.com and exporting them to the local drive.

First, store your API key as an environment variable

$env:BALLCHASING_API_KEY = "YOUR_API_KEY"
import pandas as pd
import ballchasing_scrape as bc
import os

#Query Parameters
param = {
    "uploader": 76561199225615730
}

#Load ballchasing.com API Key

authkey = os.getenv('BALLCHASING_API_KEY')
head = {
    'Authorization':  authkey
    }

#Scraping stats from returned replays
#Empty argument for 'groupurl' may be used when searching for replays not in a specific group
df = bc.scrape_game_by_game_stats("",authkey,param=param)

res = input("What would you like to name the stats directory?")

#Creates a directory based on the above input function
try:
    os.mkdir(res)
except FileExistsError:
    ""

#Local export to a csv file
df.to_csv(res+"/"+res+"_pstats.csv",index=False)

Ballchasing.com API

For documentation on the Ballchasing API, see the following link: "https://ballchasing.com/doc/api". The documentation provides parameters which may be used with functions in this package (pass parameters through the argument with "param=" in the same way you would with a standard API call).

You must provide an authentication key from Ballchasing.com in order to use this package. You may generate one at "https://ballchasing.com/upload" after logging in.

Metadata

Release files for ballchasing-scrape 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ballchasing-scrape 1.1.8
File Size Uploaded Provenance Actions
ballchasing_scrape-1.1.8.tar.gz 7.9 kB Without provenance Details for ballchasing_scrape-1.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ballchasing-scrape 1.1.8
File Interpreter ABI Platform Actions
ballchasing_scrape-1.1.8-py3-none-any.whl Python 3 none any Details for ballchasing_scrape-1.1.8-py3-none-any.whl

Total release size: 15.6 kB

Release files / ballchasing_scrape-1.1.8.tar.gz

Download URL ballchasing_scrape-1.1.8.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab528d1674bd1136712c38d609589b41a6088e688d9418db7d7767d3b045e0d4
BLAKE2b-256 checksum
How to use checksums
331840b272f8aebab25f1ec461eac5cd2404b1ae6e93fab53946d24fb273de6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Release files / ballchasing_scrape-1.1.8-py3-none-any.whl

Download URL ballchasing_scrape-1.1.8-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4feb46451b7d4d73f16c4a61f4d1d244cbfe47e1639502ae1f4a63abcc64fc7a
BLAKE2b-256 checksum
How to use checksums
d2caca4994b7382485765818d085f24568ce60506b812e035bb3e00003115fbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Security for ballchasing-scrape 1.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page