The emitter opengraph produces rigid, fragile structures

Aperta
#153 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@AdrianAtZyte ci sta già lavorando.

Dal 27/9/2026.

  • #272 di @AdrianAtZyte — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
web-dev

Direzione di ricerca

Start with the opengraph module and inspect how the HTML meta element is converted into the current array structure. Determine the intended behavior for semantic keys and repeated og: tags, then verify that the resulting output matches the agreed structure.

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

Descrizione

docs enhancement

Consider this HTML construct:

<meta property="og:title" content="‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body" />

This is turned into the following by the opengraph module:

       [
          "og:title",
          "‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body"
        ],

Does anyone know why this couldn't instead be:

"og:title":"‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body",

A case for having the output be this way:

  1. You can then do semantic selectors instead of positional selectors (["og:title"] vs [1])
  2. If there are multiple occurrences with an og:tag then I think this is a bug, certainly for the purposes of extruct. Or maybe I'm wrong on this.

Thoughts most welcome.

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.