error extracting json-ld for validated json

Aperta
#198 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Reproduce the failure with the provided URL and JSON-LD snippet, then trace the repository's JSON-LD extraction entry point to identify why valid content is reported as extra data. Done means the supplied page extracts successfully and a regression test covers this case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When trying to extract this:

<script type="application/ld+json">{"@context":"https:\/\/schema.org\/","@graph":[{"@context":"https:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"name":"\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d9\u05ea","@id":"https:\/\/www.sollan.co.il"}},{"@type":"ListItem","position":2,"item":{"name":"\u05de\u05e6\u05d1\u05e8\u05d9\u05dd \u05e4\u05e8\u05d9\u05e7\u05d4 \u05e2\u05de\u05d5\u05e7\u05d4","@id":"https:\/\/www.sollan.co.il\/product-category\/%d7%9e%d7%a6%d7%91%d7%a8%d7%99%d7%9d-%d7%a4%d7%a8%d7%99%d7%a7%d7%94-%d7%a2%d7%9e%d7%95%d7%a7%d7%94\/"}},{"@type":"ListItem","position":3,"item":{"name":"\u05de\u05e6\u05d1\u05e8 \u05e8\u05db\u05d1 \u05e1\u05d8\u05d0\u05e8\u05d8 \u05e1\u05d8\u05d5\u05e4","@id":"https:\/\/www.sollan.co.il\/product-category\/%d7%9e%d7%a6%d7%91%d7%a8%d7%99%d7%9d-%d7%a4%d7%a8%d7%99%d7%a7%d7%94-%d7%a2%d7%9e%d7%95%d7%a7%d7%94\/%d7%9e%d7%a6%d7%91%d7%a8-%d7%a8%d7%9b%d7%91-%d7%a1%d7%98%d7%90%d7%a8%d7%98-%d7%a1%d7%98%d7%95%d7%a4\/"}},{"@type":"ListItem","position":4,"item":{"name":"\u05de\u05e6\u05d1\u05e8 80 \u05d0\u05de\u05e4\u05e8 \u05d5\u05d5\u05e8\u05d8\u05d4 AGM \u05e1\u05d0\u05e8\u05d8 \u05e1\u05d8\u05d5\u05e4 80Ah stop &#038; start \u05d5\u05e8\u05d8\u05d4","@id":"https:\/\/www.sollan.co.il\/product\/%d7%9e%d7%a6%d7%91%d7%a8-80-%d7%90%d7%9e%d7%a4%d7%a8-%d7%95%d7%95%d7%a8%d7%98%d7%94-agm-%d7%a1%d7%90%d7%a8%d7%98-%d7%a1%d7%98%d7%95%d7%a4-80ah-stop-start-%d7%95%d7%a8%d7%98%d7%94\/"}}]},{"@context":"https:\/\/schema.org\/","@type":"Product","@id":"https:\/\/www.sollan.co.il\/product\/%d7%9e%d7%a6%d7%91%d7%a8-80-%d7%90%d7%9e%d7%a4%d7%a8-%d7%95%d7%95%d7%a8%d7%98%d7%94-agm-%d7%a1%d7%90%d7%a8%d7%98-%d7%a1%d7%98%d7%95%d7%a4-80ah-stop-start-%d7%95%d7%a8%d7%98%d7%94\/#product","name":"\u05de\u05e6\u05d1\u05e8 80 \u05d0\u05de\u05e4\u05e8 \u05d5\u05d5\u05e8\u05d8\u05d4 AGM \u05e1\u05d0\u05e8\u05d8 \u05e1\u05d8\u05d5\u05e4 80Ah stop &amp; start \u05d5\u05e8\u05d8\u05d4","url":"https:\/\/www.sollan.co.il\/product\/%d7%9e%d7%a6%d7%91%d7%a8-80-%d7%90%d7%9e%d7%a4%d7%a8-%d7%95%d7%95%d7%a8%d7%98%d7%94-agm-%d7%a1%d7%90%d7%a8%d7%98-%d7%a1%d7%98%d7%95%d7%a4-80ah-stop-start-%d7%95%d7%a8%d7%98%d7%94\/","description":"\u05de\u05e6\u05d1\u05e8 AGM \u05e1\u05d8\u05d0\u05e8\u05d8 \u05e1\u05d8\u05d5\u05e4 \u05d0\u05d8\u05d5\u05dd \u05dc\u05dc\u05d0 \u05d8\u05d9\u05e4\u05d5\u05dc, \u05de\u05e1\u05d3\u05e8\u05ea START-STOP \u05e1\u05d5\u05e4\u05e8 \u05de\u05d7\u05d5\u05d6\u05e7. \u05de\u05ea\u05d0\u05d9\u05dd \u05d1\u05de\u05d9\u05d5\u05d7\u05d3 \u05dc\u05e8\u05db\u05d1\u05d9\u05dd \u05d1\u05e2\u05dc\u05d9 \u05de\u05e2\u05e8\u05db\u05ea \u05e2\u05e6\u05d5\u05e8-\u05d5\u05e1\u05e2. \u05d1\u05e2\u05dc \u05e7\u05d9\u05d1\u05d5\u05dc\u05ea \u05de\u05e1\u05e4\u05e7\u05ea \u05dc\u05d4\u05ea\u05e0\u05e2\u05d4 \u05e7\u05dc\u05d4 \u05d5\u05ea\u05e4\u05e2\u05d5\u05dc \u05ea\u05e7\u05d9\u05df \u05e9\u05dc \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05d4\u05d7\u05e9\u05de\u05dc \u05d1\u05e8\u05db\u05d1.\u05d7\u05d5\u05d1\u05d4 \u05dc\u05d4\u05ea\u05d0\u05d9\u05dd \u05de\u05e6\u05d1\u05e8 \u05dc\u05e1\u05d5\u05d2 \u05d4\u05e8\u05db\u05d1 \u05db\u05e4\u05d9 \u05d4\u05d5\u05e8\u05d0\u05d5\u05ea \u05d4\u05d9\u05e6\u05e8\u05df.","image":"https:\/\/www.sollan.co.il\/wp-content\/uploads\/2021\/07\/image_front24756.jpg","sku":"24756","offers":[{"@type":"Offer","price":"1289","priceValidUntil":"2023-12-31","priceSpecification":{"price":"1289","priceCurrency":"ILS","valueAddedTaxIncluded":"false"},"priceCurrency":"ILS","availability":"http:\/\/schema.org\/InStock","url":"https:\/\/www.sollan.co.il\/product\/%d7%9e%d7%a6%d7%91%d7%a8-80-%d7%90%d7%9e%d7%a4%d7%a8-%d7%95%d7%95%d7%a8%d7%98%d7%94-agm-%d7%a1%d7%90%d7%a8%d7%98-%d7%a1%d7%98%d7%95%d7%a4-80ah-stop-start-%d7%95%d7%a8%d7%98%d7%94\/","seller":{"@type":"Organization","name":"\u05e1\u05d5\u05dc\u05df Sollan","url":"https:\/\/www.sollan.co.il"}}]}]}</script>

from url : https://www.sollan.co.il/product/%D7%9E%D7%A6%D7%91%D7%A8-80-%D7%90%D7%9E%D7%A4%D7%A8-%D7%95%D7%95%D7%A8%D7%98%D7%94-agm-%D7%A1%D7%90%D7%A8%D7%98-%D7%A1%D7%98%D7%95%D7%A4-80ah-stop-start-%D7%95%D7%A8%D7%98%D7%94/

I get this error:
Extra data: line 40 column 1 (char 1211)

I validated the schema in multiple places include:
[https://validator.schema.org/#url=https%3A%2F%2Fwww.sollan.co.il%2Fproduct%2F%25D7%259E%25D7%25A6%25D7%2591%25D7%25A8-80-%25D7%2590%25D7%259E%25D7%25A4%25D7%25A8-%25D7%2595%25D7%2595%25D7%25A8%25D7%2598%25D7%2594-agm-%25D7%25A1%25D7%2590%25D7%25A8%25D7%2598-%25D7%25A1%25D7%2598%25D7%2595%25D7%25A4-80ah-stop-start-%25D7%2595%25D7%25A8%25D7%2598%25D7%2594%2F]

Lingua principale
Python
Stelle
986
Fork
127
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scrapinghub/extruct

Tutte le issue di scrapinghub/extruct

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.