Skip to content

bondvit/scrape-sofascore-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Scrape Sofascore — examples

Runnable examples for the Sofascore Scraper — Live Scores, Events & Results | $1.9/1K on Apify.

Scrape Sofascore live scores, scheduled events and results by sport and date. Returns teams, score, status (live/finished/scheduled), start time, tournament, country, event ID and URL. Football, basketball, tennis, baseball and 15+ sports supported.

What you get per record

away_score · away_score_normaltime · away_score_overtime · away_score_period1 · away_score_period2 · away_team · away_team_id · country · custom_id · event_id · event_url · home_score · home_score_normaltime · home_score_overtime · home_score_period1 · home_score_period2 · home_team · home_team_id · league · live_minute · parse_confidence · round · round_name · scraped_at · sport · start_time · start_timestamp · status · status_code · status_description · tournament · tournament_id

Quickstart

  1. Get your Apify token: https://console.apify.com/account/integrations
  2. Run a language example below. Both call the actor and print the results.
Example File
Python (apify-client) examples/python/run.py
JavaScript (apify-client) examples/javascript/run.js
Sample output (real records) examples/sample_output.json

Example input

{
  "sport": "football",
  "mode": "by-date",
  "statusFilter": "all",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}

Links


MIT-licensed examples. The actor runs on the caller's Apify account (you pay platform compute + per-result).

About

Runnable Python & JS examples for the Sofascore Scraper on Apify

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors