Skip to content

Instantly share code, notes, and snippets.

@fjallstrom
Last active February 25, 2017 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjallstrom/ee67ec1e7d38bfd5e932dfb1fcce1be4 to your computer and use it in GitHub Desktop.
Save fjallstrom/ee67ec1e7d38bfd5e932dfb1fcce1be4 to your computer and use it in GitHub Desktop.
fetch sxsw artists 2017
<?php
$artist_html = shell_exec('curl "http://schedule.sxsw.com/2017/artists"');
preg_match_all('!<h4><a href="(.*?)">(.*?)</a></h4>!', $artist_html, $matches);
foreach($matches[1] as $i=>$val){
print_r($matches[2][$i]." : ".$val."\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment