2017 © Pedro Peláez
 

library varzesh3-crawler

Crawler for varzesh3.com livescore

image

jafaripur/varzesh3-crawler

Crawler for varzesh3.com livescore

  • Saturday, June 11, 2016
  • by jafaripur
  • Repository
  • 1 Watchers
  • 1 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Crawler for varzesh3.com

Varzesh3.com one of popular sport news agency in Iran. This crawler fetch the infomation from this website., (*1)

Install

Install using composer:, (*2)

composer require "jafaripur/varzesh3-crawler"

Usage

After installing add this line in top of page, (*3)

use jafaripur\varzesh3\Varzesh3Crawler;

And create new instance from Varzesh3Crawler, (*4)

$crawler = new Varzesh3Crawler();

If you want to add fetching url use this one, (*5)

$crawler = new Varzesh3Crawler('http://www.varzesh3.com/livescore');

Livescore

Fetching livescore for football, (*6)

$crawler = new Varzesh3Crawler();
$data = $crawler->getFootballLiveScore();

for fetch all available sport like an footbal, volleyball,..., (*7)

$data = $crawler->getLiveScore();

The structure of $data variable similar to this one for football score:, (*8)

(
    [start_time] => start time
    [start_date] => start date
    [match_status] => match status, time or finished,...
    [team_right] => Array
        (
            [name] => right team name
            [score] => socre to this time
        )
    [team_left] => Array
    (
        [name] => left team name
        [score] => socre to this time
    )
    [events] => Array
    (
        [team_left] => Array
        (
            [name] => name of event like an goal, own_goal,...
            [time] => time of event
            [player] => name of player
        )
        [team_right] => Array
        (
            [name] => name of event like an goal, own_goal,...
            [time] => time of event
            [player] => name of player
        )
    )
)

The Versions

11/06 2016

dev-master

9999999-dev

Crawler for varzesh3.com livescore

  Sources   Download

BSD-3-Clause

The Requires

 

by Araz Jafaripur

crawler live score craler footbal crawler varzesh3.com live score crawler