Closed edwindotcom closed 2 years ago
note there are more comments in https://github.com/mozilla/activity-stream/issues/1178
Current image
processing rules are in mozilla/page-metadata-parser /parser.js:40-46:
image_url: [
['meta[property="og:image:secure_url"]', node => node.element.getAttribute('content')],
['meta[property="og:image:url"]', node => node.element.getAttribute('content')],
['meta[property="og:image"]', node => node.element.getAttribute('content')],
['meta[property="twitter:image"]', node => node.element.getAttribute('content')],
['meta[name="thumbnail"]', node => node.element.getAttribute('content')],
],
Current meta tags for https://en.wikipedia.org/wiki/Katie_Ledecky via meta-scraper:
Sadly, doesn't look like any tags we can scrape that match our page-metadata-parser rules in https://github.com/mozilla/page-metadata-service/issues/85#issuecomment-243200450
use httpie to do this:
notice images:[]
results in this:
expected: embedly does have an img