first commit

This commit is contained in:
张乾
2024-10-15 23:13:09 +08:00
parent bbc9aed40c
commit 201a5889b1
142 changed files with 21536 additions and 2 deletions

View File

@ -41,7 +41,7 @@ foreach ($lines as $line) {
$line = str_replace(' ', '%20', $line);
$curlUrl = $url. $line;
$response = file_get_contents($curlUrl);
mkdir($folderName, 0777, true);
preg_match_all('/<a class="menu-item" id="([^"]*)" href="([^"]*)">([^<]*)<\/a>/', $response, $matches);
@ -74,7 +74,7 @@ foreach ($lines as $line) {
file_put_contents($fileName, $text);
sleep(10);
sleep(5);
// preg_match_all('/<p>([^<]*)<\/p>/', $fileContents, $fileMatches);
}