[telepathy] [Bug 310512] Plugin to expand URL Shortener urls

Anant Kamath kamathanant at gmail.com
Fri Apr 26 21:05:46 BST 2013


https://bugs.kde.org/show_bug.cgi?id=310512

--- Comment #4 from Anant Kamath <kamathanant at gmail.com> ---
AFAIK the number of sites that  include Open Graph meta data tags is limited
(it's not a universal thing).

And to generate a preview we'd need to download the entire HTML source of the
page at the URL and parse it in the filter itself to get those OGP tags if
they're present. And if those tags aren't present then we can easily extract at
most the page title. Extracting a meaningful 'description' or a human readable
text excerpt and picking a thumbnail image might be more difficult .

How facebook and google plus apparently do it :
http://www.raymondcamden.com/index.cfm/2011/7/26/How-are-Facebook-and-Google-creating-link-previews

A lot of different metadata 'protocols '(other than OGP) are in use in
websites. 
So if not a we could probably look for a few certain popular tag types (eg.
OGP, "<link rel=> tags, <meta description> ... etc) to generate a preview; if
none of those tags are found, then a preview won't be generated (perhaps just
the page title?) 

So, will it be acceptable for the filter to download the entire HTML source at
the URL and create a HTML parser that will consider all combinations/types of
tags that a website might use?

And short urls will still need to be lengthened before any of this takes place
right?

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list