Introducing wikipedia2BibTeX

I know, it’s been a real long time I didn’t blog… again. But hey, it’s not as if you were a lot of readers of mine, right ;-)

Anyway, I come back for a quickie, introducing a new tool I fastly hacked: wikipedia2BibTex. Behind this cryptic name is a very basic Python tool which creates a BibTeX citation from a Wikipedia page. Simple, isn’t it? For example, if you want to cite the wonderful BibTeX page, just type:

wikipedia2BibTeX BibTeX --lang en

in your favorite terminal and it will show the result as:

@misc{wiki-bibtex,
author = "Wikipedia",
title = "BibTeX --- {W}ikipedia{,} The Free Encyclopedia",
year = "2011",
url = "http://en.wikipedia.org/w/index.php?title=BibTeX&oldid=406037891",
note = "[Online; accessed 27-January-2011]"
}

As default, the --lang parameter is put to French (--lang fr). Please enjoy and share!

Download

As usual, the code is on **gitorious**, get it with:
git clone git@gitorious.org:wikipedia2bibtex/wikipedia2bibtex-gitorious-wiki.git

Install

If you want a system-wide install, type: sudo python setup.py install.

If you to keep it just for you or if you don’t have enough rights, type: python setup.py install --user.

Future

Please, don’t hesitate to share your thoughts, remarks, critics and/or patches on wikipedia2BibTeX, it’s still a young baby who needs love ;–)

I’ve identified some problem to be fixed in the future:

  • unicode handling (damn you Python 2.x!)

I hope I’ll find some time to fix them soon!

Advertisement

0 Responses to “Introducing wikipedia2BibTeX”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.