# Bcboysbasketball Rank Scraper (`getdataforme/bcboysbasketball-rank-scraper`) Actor

Effortlessly scrape and compile BC Boys Basketball team rankings with this Apify Actor. Automates extraction of positions, divisions, and weekly changes using robust CheerioCrawler for reliable, structured JSON data....

- **URL**: https://apify.com/getdataforme/bcboysbasketball-rank-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Lead generation, Other
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bcboysbasketball Rank Scraper

### Introduction

The Bcboysbasketball Rank Scraper is an Apify Actor designed to extract and compile basketball team rankings from the BC Boys Basketball website. It automates the collection of detailed ranking data, including team positions, divisions, and weekly changes, providing structured insights for coaches, analysts, and enthusiasts. This tool ensures reliable, up-to-date information to support decision-making in competitive sports environments.

### Features

- **Automated Data Extraction**: Scrapes rankings from specified URLs using robust CheerioCrawler technology for efficient web scraping.
- **Structured Output**: Delivers clean, JSON-formatted data with fields like rank, team name, division, and weekly changes.
- **Flexible Input**: Accepts multiple start URLs to scrape various ranking pages or custom endpoints.
- **High Reliability**: Handles dynamic web content and provides consistent results with error logging.
- **Performance Optimized**: Processes pages quickly with minimal resource usage, suitable for large-scale extractions.
- **Customizable**: Supports filtering and parsing of specific data points for tailored outputs.
- **Apify Integration**: Seamlessly integrates with Apify's platform for easy deployment, monitoring, and data export.

### Input Parameters

| Parameter | Type   | Required | Description | Example |
|-----------|--------|----------|-------------|---------|
| startUrls | array  | Yes      | An array of URLs to start scraping rankings from. Each URL should point to a valid ranking page on the BC Boys Basketball site. | `[{"url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"}]` |

### Example Usage

#### Input

```json
{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"
    }
  ]
}
```

#### Output

```json
[
  {
    "pageHeading": "BC SENIOR BOYS' BASKETBALL RANKINGS",
    "cutoffDate": "AAAA Zones",
    "division": "4A",
    "week": "11",
    "weekDate": "Week 11",
    "rank": "1",
    "isHonourableMention": false,
    "team": "Dover Bay Dolphins (Nanaimo) (VI)",
    "lastWeek": "1",
    "sourceUrl": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"
  }
]
```

### Use Cases

- **Sports Analytics**: Track team performance trends and historical rankings for predictive modeling.
- **Coaching Insights**: Monitor rival teams' standings to inform training strategies and game preparations.
- **Fan Engagement**: Provide up-to-date rankings for blogs, apps, or social media to engage basketball communities.
- **Tournament Planning**: Analyze division-specific data to organize leagues or events based on current strengths.
- **Research and Reporting**: Gather data for academic studies on youth sports participation and competitiveness.
- **Business Automation**: Integrate with dashboards for automated reporting on sports metrics.

### Installation and Usage

1. Search for "Bcboysbasketball Rank Scraper" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs an array of JSON objects, each representing a ranked team. Key fields include:

- `pageHeading`: The title of the ranking page (e.g., "BC SENIOR BOYS' BASKETBALL RANKINGS").
- `cutoffDate`: Relevant cutoff or zone information.
- `division`: The league division (e.g., "4A").
- `week`: Current week number.
- `weekDate`: Descriptive week label.
- `rank`: Team's current ranking position.
- `isHonourableMention`: Boolean indicating if it's an honorable mention.
- `team`: Full team name with location and region.
- `lastWeek`: Previous week's rank.
- `sourceUrl`: The URL from which the data was scraped.

This structured format allows for easy integration into databases or analysis tools.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

### PART 2: Concise Description

Unlock precise BC Boys Basketball rankings with our Apify Actor! Effortlessly scrape team standings, divisions, and weekly changes from official sites. Key features include automated extraction, structured JSON output, and flexible URL inputs for comprehensive data. Ideal for coaches, analysts, and fans tracking competitive insights. Start extracting reliable sports data today—try it free on Apify! (128 words)

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/bcboysbasketball-rank-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565" }] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/bcboysbasketball-rank-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/custom_page.cfm?clientid=2192&leagueid=0&pageid=12565"
    }
  ]
}' |
apify call getdataforme/bcboysbasketball-rank-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/bcboysbasketball-rank-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/453YH0NCBSYJh7vKY/builds/PDDbVWmgwu1Ygh2kp/openapi.json
