Skip to content

Instantly share code, notes, and snippets.

@carlosernestolopez
Created October 8, 2019 06:39
Show Gist options
  • Save carlosernestolopez/e7b0759d15e0c4c24dd770165dcf63b5 to your computer and use it in GitHub Desktop.
Save carlosernestolopez/e7b0759d15e0c4c24dd770165dcf63b5 to your computer and use it in GitHub Desktop.
getInfo todobusco.com using sitemap
<?php
# getInfo todobusco.com using sitemap
# it didn't work btw
# celopez.ni1990@gmail.com
$info = simplexml_load_string(file_get_contents('https://todobusco.com/sitemap.xml'));
foreach($info as $inf) {
$res = @file_get_contents( $inf->loc );
if( $res != "" ) {
$urls = simplexml_load_string( $res );
foreach( $urls as $url )
print $url->loc."\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment