Changeset 30 for trunk/Import
- Timestamp:
- Dec 30, 2018, 10:18:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Import/Seznamka.php
r28 r30 42 42 $MeetItem->Date = HumanDateToTime(trim(GetTextBetween($Item, '> </a>', '</span>'))); 43 43 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, 'margin-top:10px;\'>', '</div>'))); 44 $MeetItem->Link = 'https://www.seznamka.cz'.substr(GetTextBetween($Item, "<a href='", "'"), 5); 44 $MeetItem->Link = GetTextBetween($Item, "<a href='", "'"); 45 while (substr($MeetItem->Link, 0, 3) == '../') 46 $MeetItem->Link = substr($MeetItem->Link, 3); 47 $MeetItem->Link = 'https://www.seznamka.cz/'.$MeetItem->Link; 45 48 $MeetItem->Email = GetEmailFromText($MeetItem->Message); 46 49 $MeetItem->Phone = ''; 47 50 $MeetItem->Height = GetHeightFromText($MeetItem->Message); 48 51 $MeetItem->Weight = GetWeightFromText($MeetItem->Message); 49 50 52 $MeetItem->Database = $this->Database; 51 53 $MeetItem->Source = $this->Id;
Note:
See TracChangeset
for help on using the changeset viewer.