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
The Open Graph protocol states that if there are multiple tags, the first one should be preferred in cases of conflicts. See here: https://ogp.me/#array
@SeriousBug yes, I consider that if we get all the values and push them into an array, the output will become more complex and not easy to keep consistent.
Not grabbing all the tags in an array is absolutely a valid design decision. But I think article-extractor should still prefer to scrape the first image rather than the last one.
The Open Graph protocol states that if there are multiple tags, the first one should be preferred in cases of conflicts. See here: https://ogp.me/#array
But
article-extractor
prefers the last tag. The code gets all the meta tags in the page, and iterates over them. If there are multiple tags, the last one will override earlier ones: https://github.com/extractus/article-extractor/blob/main/src/utils/extractMetaData.js#L98-L127The text was updated successfully, but these errors were encountered: