Created
February 9, 2017 21:47
-
-
Save iraniamir/24aab09485b8e06a62f5d68d685311c9 to your computer and use it in GitHub Desktop.
in php
This file contains 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 | |
include 'simple_html_dom.php'; | |
// Shatelland sharedfolder link | |
$html = file_get_html('http://shatelland.com/upload/sharefolder/[FOLDER-ID]'); | |
// Find all dl links | |
foreach ($html->find('.the-file a') as $element) { | |
$html0 = file_get_html($element->href); | |
foreach ($html0->find('a#downloadFile') as $element0) { | |
echo $element0->href.'<br>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment