Conversation
- Extract full item description from [data-marker='item-description/text'], Schema.org metadata, or embedded JSON state (fixes Duff89#305) - Automatically enrich description during parse_views without requiring additional network requests - Add parse_description option in AvitoConfig, config.toml, and Flet GUI checkbox for standalone description extraction - Add comprehensive unit tests in tests/test_description_parser.py
Owner
|
Спасибо за PR, протестирую в свободное время и волью если всё ок |
Author
|
Отлично, спасибо! Если возникнут какие-то вопросы или понадобятся правки — дай знать, оперативно подправлю. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Парсинг полного описания товара со страницы объявления (Fixes #305)
Устранена проблема сохранения обрезанного описания товара (ограниченного анонсом с кнопкой «Читать полностью»).
В чем была проблема (#305):
Поисковое API Avito (
items?...) возвращает в каталоге только краткий текстовый анонс (1-2 предложения с многоточием). Из-за этого в Excel-файл попадала лишь малая часть описания, а ключевые характеристики и подробности товара терялись.Что сделано:
_extract_description():[data-marker="item-description/text"].[itemprop="description"].loaderData.data.item.description).parse_views:ad.descriptionполное описание без дополнительных HTTP-запросов.parse_description:parse_descriptionвAvitoConfigиconfig.toml.tests/test_description_parser.py):