PHP 8.2.1510.41.0
DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36',
),
));
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
function getMetadataFromHtml($html) {
/* bazı sayfalar dublin core yerine farklı bir yöntem kullanıyor. bu kod onun için */
// Initialize DOMDocument
$doc = new \DOMDocument();
@$doc->loadHTML($html); // Suppress warnings for invalid HTML
// Initialize an array to store metadata
$metadata = array();
// Get all meta tags
$metaTags = $doc->getElementsByTagName('meta');
// Loop through each meta tag
foreach ($metaTags as $metaTag) {
// Check if the meta tag has a name attribute
if ($metaTag->hasAttribute('name')) {
// Get the name and content attributes
$name = $metaTag->getAttribute('name');
$content = $metaTag->getAttribute('content');
Request
http://bevis.beu.edu.tr/yayinlar/5685508/makale
GET
curl "http://bevis.beu.edu.tr/yayinlar/5685508/makale" \
-X GET \
-H 'x-real-ip: 3.144.17.233' \
-H 'x-forwarded-for: 3.144.17.233' \
-H 'host: bevis.beu.edu.tr' \
-H 'x-nginx-proxy: true' \
-H 'connection: upgrade' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'accept-encoding: gzip, deflate' \
-H 'cookie: XSRF-TOKEN=eyJpdiI6Ildjc29nTjFXUTVCRkZSNjAwdkRSUnc9PSIsInZhbHVlIjoibnhRZnVwVzZpM3NrWmhCblMweFhVZWlxMjFZakVsOXlpZ1MwSWpiRG04aG84TEdjeSt4enVnd3A3enVLOWxYUlBtU1NYcDJ3WWV5UldKc2c1aVNCMDE3Zml3eUJsYUtiRFRjVTRoc3BtV2pTUHNTTGJud3VLVGpPSXkzWXNCSVYiLCJtYWMiOiIwN2M1MWI0NmIxNDYyNWFmZmNiNTBkZGE5Y2MwM2I5NDMwNGJlZTc2NmJhZDBkZDA1Yzk4YzU3MzU3MzMxODkzIiwidGFnIjoiIn0%3D; bevis_session=eyJpdiI6ImdmT2hTWjdqU01IT1dOcmdlTHFBVkE9PSIsInZhbHVlIjoibVFVdlFoZnFtM2l1T3dncWRuWVkzUXlPR0FxUDFlRldUSXZsVnhUc3VUYjZQTFhYYWppUlNaZDI0RUkxM2xGVmtMQVBna3MrcFQ1SzhsSHM2ZlBVcG85dW5aNUtXbzJ4M0dmNytQYm92WmJQOVRTaktFMEErYzNpNTd1ZG01NHkiLCJtYWMiOiJjY2YzMzdjNjA4YjRlMWIwYjQxZmY5YjEyOWRmNWJjNThkMzE4Yzk3MzEyZTM4NGE3MzlkZWFhMjU5YmQ5ZTk4IiwidGFnIjoiIn0%3D; uid=CgFkAWeQqIVxwV/7AxGvAg==; _ga_LXCTCP9CV8=GS1.1.1737533766.1.0.1737533766.0.0.0; _ga=GA1.1.804222354.1737533767';
Browser
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Headers
- x-real-ip
3.144.17.233
- x-forwarded-for
3.144.17.233
- host
bevis.beu.edu.tr
- x-nginx-proxy
true
- connection
upgrade
- pragma
no-cache
- cache-control
no-cache
- upgrade-insecure-requests
1
- user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
- accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
- accept-encoding
gzip, deflate
- cookie
XSRF-TOKEN=eyJpdiI6Ildjc29nTjFXUTVCRkZSNjAwdkRSUnc9PSIsInZhbHVlIjoibnhRZnVwVzZpM3NrWmhCblMweFhVZWlxMjFZakVsOXlpZ1MwSWpiRG04aG84TEdjeSt4enVnd3A3enVLOWxYUlBtU1NYcDJ3WWV5UldKc2c1aVNCMDE3Zml3eUJsYUtiRFRjVTRoc3BtV2pTUHNTTGJud3VLVGpPSXkzWXNCSVYiLCJtYWMiOiIwN2M1MWI0NmIxNDYyNWFmZmNiNTBkZGE5Y2MwM2I5NDMwNGJlZTc2NmJhZDBkZDA1Yzk4YzU3MzU3MzMxODkzIiwidGFnIjoiIn0%3D; bevis_session=eyJpdiI6ImdmT2hTWjdqU01IT1dOcmdlTHFBVkE9PSIsInZhbHVlIjoibVFVdlFoZnFtM2l1T3dncWRuWVkzUXlPR0FxUDFlRldUSXZsVnhUc3VUYjZQTFhYYWppUlNaZDI0RUkxM2xGVmtMQVBna3MrcFQ1SzhsSHM2ZlBVcG85dW5aNUtXbzJ4M0dmNytQYm92WmJQOVRTaktFMEErYzNpNTd1ZG01NHkiLCJtYWMiOiJjY2YzMzdjNjA4YjRlMWIwYjQxZmY5YjEyOWRmNWJjNThkMzE4Yzk3MzEyZTM4NGE3MzlkZWFhMjU5YmQ5ZTk4IiwidGFnIjoiIn0%3D; uid=CgFkAWeQqIVxwV/7AxGvAg==; _ga_LXCTCP9CV8=GS1.1.1737533766.1.0.1737533766.0.0.0; _ga=GA1.1.804222354.1737533767
App
Context
8:16:22 AM
16.25ms
mysql
select * from `makalelers` where `YAYIN_ID` = 5685508 limit 1