[MediaWiki-l] Parsing barelinks to generate full citations

James Hare jamesmhare at gmail.com
Sun Jul 2 03:14:59 UTC 2017


The Citoid service can perform this task: <
https://www.mediawiki.org/wiki/Citoid>.

You can try it out here: <
https://en.wikipedia.org/api/rest_v1/#!/Citation/getCitation>.


On July 1, 2017 at 8:12:42 PM, Jean Valjean (jeanvaljean2718 at gmail.com)
wrote:

What are the best tools for parsing barelinks to generate full citations?
E.g., converting

https://www.youtube.com/watch?v=lRcthTPP0s4

to

{{cite web|author=SecularSkin|date=11 November
2013|title=Christy0Misty's Series On Feminism|publisher=YouTube|url=
https://www.youtube.com/watch?v=lRcthTPP0s4}}

The easiest way seems to be to just grab whatever's in the website's
<title> tags, put that as the title in the citation, and call it a day. But
that usually doesn't give you the date, often doesn't give you the author,
etc. The website, or publisher, etc. you can usually infer from the URL, so
that's not as big a problem.

On my wiki, articles often reference YouTube videos, Reddit comments, etc.
Thus far, I haven't figure out a way to gather the metadata from those,
except by coming up with specialized scripts to scrape each different kind
of website. Is there any collaboration that is working on this kind of
issue?
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


More information about the MediaWiki-l mailing list