Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

yuryuri4

Newbie
  
  • Posts

    25
  • Joined

  • Last visited

Information

  • Gender
    Мужчина
  • City:
    IF

yuryuri4's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

3

Reputation

  1. Данные ввел. Я сначала в HTML-тег Title для товаров выводил цену товара. Так как сейчас цены очень часто меняются то решил убрать ее. Сделал другой шаблон, пробую менять но не выходит :(
  2. Добрый день! Не могу изменить мета данные товаров по шаблону. Захожу в Инструменты и выполняю "Исправить мета-данные товаров", но ничего не изменилось :(
  3. Здравствуйте. Помогите пожалуйста настроить парсинг с этого сайта http://extradigital.ua. Не могу спарсить артикул (получается всегда "Артикул:ХХХХХХ"), название категории и описание. Спасибо!
  4. нашел причину :) Вырезало текст после слова "гарантия". Удалил else { $pos = stripos($text, 'Гарантия', 0); if ($pos) $text = substr($text, 0, $pos); в файле suppler.php и все заработало :)
  5. Только что увидел, что и описание парсится не полностью. Обрезает по разному, какой то закономерности не увидел, все в пределах 1000-1500 символов. Сайт донора http://powerplant.kiev.ua/
  6. Параметр парсинга <div class="span6">,</div> Код: <div class="span6"> Дополнител <br> Количество экранов: 3 в комплекте <br> Размер основного экрана: 67.1*56.0*1.2мм. <br> Размер <br> Производител <br> Гарантия: 12 месяцев <br> <br> <br> <img src="http://www.e................DALL_1.jpg"> <br> <img src="http://www........DALL_2.jpg"> </div>
  7. Парсится только текст описания. Вставил туда: public function ParsDescription($ht, $key, $point, $place) { $text = ''; if (!empty($key) and strlen($ht) > 500) { $key = str_replace('"', '"',$key); $key = str_replace('<', '<',$key); $key = str_replace('>', '>',$key); $key = str_replace('&', '&',$key); $k = explode(",", $key); if (empty($k[0]) or empty($k[1])) { $err = " Product description keyword error \n"; $this->adderr($err); return $text; } $text = $this->Parsing($ht, $k, $point, $place); $text = str_replace('Описание', '', $text); $text = str_replace('Description', '', $text); $text = preg_replace('/<p.*?>/','<p>',$text); $text = preg_replace('/<P.*?>/','<P>',$text); $text = str_replace('<h2>', '<br><strong>', $text); $text = str_replace('</h2>', '</strong><br><br>', $text); $text = str_replace('<h3>', '<br><br><strong>', $text); $text = str_replace('</div>', '</div><br>', $text); $text = str_replace('</h3>', '</strong><br><br>', $text); $text = strip_tags($text, '<p><em><i><br><li><ul><tbody><table><img><tr><td><i><b><strong>'); $text = str_replace('<p></p>', '', $text); $text = str_replace('<strong></strong>', '', $text); $text = str_replace('&', '&',$text); $text = str_replace(' ', ' ',$text); $posa = strrpos($text, "<!--"); if ($posa) $text = substr($text, 0, $posa);
  8. вот пример кода <div class="span6"> Дополнител <br> Количество экранов: 3 в комплекте <br> Размер основного экрана: 67.1*56.0*1.2мм. <br> Размер <br> Производител <br> Гарантия: 12 месяцев <br> <br> <br> <img src="http://www.e...........................DALL_1.jpg"> <br> <img src="http://www........DALL_2.jpg"> </div>
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.