Parsing (Oneboxing) IMDB links

AI-generated summary

The discussion revolves around adding IMDB links to the list of automatically parsed links in Discourse, similar to Wikipedia. Initially, Webinsane suggests this feature, but sam questions whether IMDB permits this due to oEmbed. eviltrout mentions that scraping IMDB was previously removed as it violated their TOS.

However, terraboss discovers that IMDB links can be fetched using embed.ly, and Moter8 reveals that adding imdb.com to the onebox domains whitelist site setting makes it work. Unfortunately, ratings are not displayed as they are not included in the schema/embed.

Following the discovery, codinghorror suggests adding IMDB to the default whitelist, and techAPJ implements this by creating a pull request.

IMDB should be on the list to automatically parse like wikipedia etc.

http://www.imdb.com/title/tt2861424/

1개의 좋아요

Is that permitted? do they have oembed?

IIRC we used to scrape IMDB until it was pointed out that it was a violation of their TOS so it was removed.

1개의 좋아요

It says

A lot of providers are available via http://embed.ly. However, you’ll have to register to get an api-key. Some of the listed providers have already been added to this plugin, yet not all.

For that one (IMDB) specifically.

1개의 좋아요

Thanks. I guess we have to wait. You should change color of your hair on Halloween.

1개의 좋아요

IMDB should be working at all. URL content fetching seems to work:
http://embed.ly/docs/explore/oembed?url=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt1870479%2F

I’m still waiting for this onboxing feature. I’m a big movie / tv shows fan and still looking for an onboxing method with rating. Any ideas so far?

Yes, but it does not pick up the photo.

Yes?

Even the movie title with rating would be fine. But it doesn’t work at all, e.g.:

http://www.imdb.com/title/tt1870479/

Sure works:


You just have to add imdb.com to the onebox domains whitelist site setting.

The rating doesn’t show up as they don’t send that with the schema/embed.

4개의 좋아요

Hmm if this is working now we should add imdb to the default whitelist @techapj.

4개의 좋아요

Yeah it looks like they added open graph support!

4개의 좋아요

Okay, done

https://github.com/discourse/onebox/pull/290

7개의 좋아요