You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@boxabirds that's a good question. The output with uniform=True is already a dict like you describe: https://github.com/scrapinghub/extruct#uniform - so my understanding is that by default we do minimal post-processing, but also provide the data in a more convenient format.
So maybe we could update the docs so it emphasises that the uniform=True flag should be used in most new cases. I'd encourage the default to be this but that'd likely break your current users.
Consider this HTML construct:
This is turned into the following by the opengraph module:
Does anyone know why this couldn't instead be:
A case for having the output be this way:
["og:title"]
vs[1]
)og:tag
then I think this is a bug, certainly for the purposes ofextruct
. Or maybe I'm wrong on this.Thoughts most welcome.
The text was updated successfully, but these errors were encountered: