Livescore_scraper avatar
Livescore_scraper

Under maintenance

Pricing

Pay per event

Go to Store
Livescore_scraper

Livescore_scraper

Under maintenance

Developed by

Henry Green

Maintained by Community

A Node.js CLI tool that scrapes football fixtures from LiveScore. It fetches head-to-head (H2H) stats, home/away last matches, and upcoming/past fixtures. Saves results to JSON and logs to output.txt. Ideal for football fans and developers.

0.0 (0)

Pricing

Pay per event

0

Monthly users

5

Runs succeeded

>99%

Last modified

a month ago

A Node.js command-line tool to scrape football (soccer) fixtures from LiveScore. This script fetches match data, including head-to-head stats, home and away team last matches, and upcoming fixtures for the next match day. It saves the scraped data to Fixtures.json and logs all output to output.txt for easy reference. Features include colorized terminal output, robust error handling, and automated fixture retrieval. The premium version supports custom date selection. Ideal for football enthusiasts, developers, and match data analysts.

Why This Script Stands Out

By default, this script scrapes all football fixtures for tomorrow from LiveScore, delivering comprehensive match data with fast and efficient execution.

High-Speed Scraping Runs in under 20 minutes, depending on the size of the extracted data.

Real-Time Logging Displays detailed match data with rapid console logging.

Optimized Performance Built for speed and efficiency, ensuring quick data retrieval.

Apify Compatibility Can run on Apify, but due to its high-speed logging, Apify may display a warning: "WARNING: Logging is too fast, some lines were skipped."

Best Experience on Local Machines For full logs and maximum efficiency, we recommend installing and running the script locally from GitHub.

This script is designed for football analysts, developers, and data enthusiasts who need accurate and timely match data with minimal

Installation Guideline

Follow these steps to set up and run the script:

  1. Install Node.js and npm

    • Option 1: Download and install Node.js (v14 or higher recommended). npm comes bundled with Node.js.
    • Option 2: Install via package manager (e.g., on Ubuntu/Debian):
      sudo apt update && sudo apt install nodejs npm
      • For macOS with Homebrew:
        brew install node
    • Verify installation:
      1node -v
      2npm -v
  2. Clone the Repository

    • Clone this repo to your local machine:
      git clone https://github.com/Qring99/Livescore_Scraper.git
    • Navigate into the directory:
      cd Livescore_Scraper
  3. Install Dependencies

    • Run the following command to install required packages:
      npm install axios chalk@4.1.2 figlet
    • This installs axios, chalk (v4.1.2), and figlet, and updates package.json.
  4. Verify Setup

    • Ensure all dependencies are installed by checking the node_modules folder or running:
      npm list --depth=0
  5. Run Script

    • Run the following command to run the script:
      node livescore.js

Important Notice for Apify Users:

If you run this tool on Apify, it will execute successfully, but the output file---Fixtures.json and output.txt---will not be saved locally. This is due to how Apify handles file storage. Unlike a traditional local environment, Apify does not support direct file saving using fs.writeFile() or fs.createWriteStream(). Instead, Apify stores output in its Key-Value Store, which requires a different method to access your data.

For the best experience, we highly recommend installing and running this tool on your local machine, where you can properly generate and access Fixtures.json and output.txt.

However, if you choose to run the tool on Apify, you can still view the logs:

  1. Go to the Apify Console after the run is complete.

  2. Click "View Full Logs" to see how the output was saved in output.txt.

This will help you understand where the output is stored within Apify's environment.

Install and Run the Script Locally

To use this script, install it on your local machine and run it. If you enjoy the script and find it useful, consider upgrading to the paid version, which includes:

Custom date selection (e.g., 25-08-18) Upcoming & past fixtures Head-to-head (H2H) stats Home & away last matches

For access to the premium version, email me at qring99@gmail.com

Contact & Customization

Want to tweak this script for your own needs or extract additional data not currently included? I'd be happy to help! Reach out to me at qring99@gmail.com (mailto:qring99@gmail.com) for custom modifications tailored to your expectations---whether it's adding new features, adjusting the output, or scraping different stats. Let's make it work for

Hiring Opportunity:

Passionate about web scraping and automation? I'm eager to showcase my expertise! If you're seeking a skilled professional to architect innovative scraping solutions, streamline workflows, or automate intricate web processes, connect with me at qring99@gmail.com (mailto:qring99@gmail.com). Let's elevate your projects together---hire me, and unlock a world of possibilities!

Pricing

Pricing model

Pay per event 

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

Scrape LiveScore Data

$0.100

This event fetches football (soccer) fixtures and match data from LiveScore. It retrieves head-to-head (H2H) stats, home/away last matches, and upcoming fixtures. Results are saved in JSON format and logs are stored for easy access.