Skip to content

Instantly share code, notes, and snippets.

@brsbl-zz
brsbl-zz / gist:f07bfc2c9cedfff21916f6f4cd3f3052
Created July 27, 2016 16:27 — forked from johanlaidlaw/gist:1596626
Scraper for transfermarkt
<?php
include_once('../simple_html_dom.php');
function scraping($url) {
// create HTML DOM
$html = file_get_html($url);
// Find the table that has class="tabelle_spieler" in the source code
// There are two of these tables and we want the second one therefor 1 (index start by 0)