URL); $Content = str_replace("(adsbygoogle = window.adsbygoogle || []).push({});", "", $Content); $BlockStart = '

Tanec ... : Seznamka

'; $BlockEnd = 'rel=\'prev\'>Předchozí'; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = '
'; $ItemEnd = 'Odpovědět
'; while (strpos($Content, $ItemStart) !== false) { $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); if ($Item == '') break; if (str_starts_with($Item, '
')) continue; $MeetItem = new MeetItem(); //$MeetItem->Image = trim(GetTextBetween($Item, '')); $Gender = trim(GetTextBetween($Item, "Gender = Gender::Female; else if ($Gender == 'muz') $MeetItem->Gender = Gender::Male; else $Gender = Gender::Undefined; $MeetItem->Name = trim(GetTextBetween($Item, '>', '')); $MeetItem->Name = trim(strip_tags($MeetItem->Name)); $Category = trim(GetTextBetween($Item, '', '')); $MeetItem->Age = trim(strip_tags(GetTextBetween($Item, '', ''))); $MeetItem->Age = trim(str_replace('let', '', $MeetItem->Age)); $MeetItem->Location = trim(strip_tags(GetTextBetween($Item, '', ''))); $Time = trim(html_entity_decode(str_replace(' ', '', GetTextBetween($Item, 'TOP', '')))); if ($Time == 'Včera') $Time = HumanDate(time() - 60*60*24); else if ($Time == 'Dnes') $Time = HumanDate(time()); $MeetItem->Time = HumanDateToTime($Time); $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '

', '

'))); $MeetItem->Link = GetTextBetween($Item, "Link, 0, 3) == '../') $MeetItem->Link = substr($MeetItem->Link, 3); $MeetItem->Link = 'https://www.seznamka.cz/'.$MeetItem->Link; $MeetItem->Email = GetEmailFromText($MeetItem->Message); $MeetItem->Phone = ''; $MeetItem->Height = GetHeightFromText($MeetItem->Message); $MeetItem->Weight = GetWeightFromText($MeetItem->Message); $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; $this->MeetItems[] = $MeetItem; } return $Output; } }