Random order in RDFA’s root list

Aperta
#146 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@AdrianAtZyte ci sta già lavorando.

Dal 3/8/2026.

  • #256 di @AdrianAtZyte — aperta

Valutazione

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

Direzione di ricerca

Reproduce the nondeterministic output with tox -e py -- README.rst and inspect the reported diff at the root rdfa list. Trace where that list is assembled and compare the behavior noted in #116 and #127. Done means repeated runs produce a stable order and the README check passes consistently.

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

Descrizione

bug

In the current state of #127, running tox -e py -- README.rst and looking at the end of the reported diff between actual output and expectations, the order of the 2 dictionaries in the root list of rdfa changes across different executions.

So, sometimes you get:

       'rdfa': [ { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/#header',
                   'http://www.w3.org/1999/xhtml/vocab#role': [ { '@id': 'http://www.w3.org/1999/xhtml/vocab#banner'}]},
                 { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/',

While other times you get:

       'rdfa': [ { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/',
                   …
                   { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/#header',
                   'http://www.w3.org/1999/xhtml/vocab#role': [ { '@id': 'http://www.w3.org/1999/xhtml/vocab#banner'}]}]}

I though #116 would fix this, but it did not.

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.