Last active
February 25, 2017 21:36
-
-
Save fjallstrom/ee67ec1e7d38bfd5e932dfb1fcce1be4 to your computer and use it in GitHub Desktop.
fetch sxsw artists 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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