Very slow extraction for specific string

Aperta
#193 7 commenti 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
performance

Direzione di ricerca

Start by reproducing the roughly 60-second extruct.extract call with the HTML string linked in the issue, then compare it with strings that complete in 1–5 seconds. Trace which extraction path accounts for the delay; done means the problematic input no longer exhibits the excessive slowdown or the cause and workaround are documented.

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

Descrizione

I have one site with HTML strings, where I have really slow extraction times (~60 seconds). I just call extruct.extract with this string:

https://pastebin.com/QJbUdaA6

Other strings work in times like 1-5 seconds. Does somebody have an idea what`s wrong with this string? Is there something I can do?

Thank you all for working on this great python package!

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.