Missions Write a bot for this dataset: 'Financ...

Write a bot for this dataset: 'Finance Licences (Various) - Capital Markets Authority (Kenya)'

Briefing

Your mission is to write a bot (some code) to transform a website into open data

This is the site in question: http://www.cma.or.ke/index.php?option=com_docman&view=docman&Itemid=131

This is one for people with technical skills - specifically coding in Ruby or Python (other languages are in the pipeline)

Example

This is the website, that contains a link to the PDF with the data.

img

This is a difficult PDF to parse, since it is a scan. So you might have to use OCR methods to gather the data out of the PDF. Here is an example output for the screenshot below:

{"company_name": "African Alliance Kenya Investment Bank Limited", "address": "P.O. Box 27639, Nairobi", "license_number": "001"},
{"company_name": "Barclays Financial Services Limited", "address": "P.O. Box 30120-00100, Nairobi", "license_number": "002"},
...

img

Here's how we suggest you go about it:

  1. Start by clicking 'Accept this mission' on this page. Don't worry, you can always give up if you can't finish it.
  2. You'll write the scraper using our "Turbot" framework. Head over to the Turbot website to and click "Start contributing" to read a getting started guide.
  3. If you have any questions, whether they are technical or about the data, get in touch and ask!
  4. When you think you've written a suitable bot, submit it for review using the Turbot command line tool.
  5. Once we've checked over the data, we'll either tell you if anything needs to be fixed or we'll accept the bot which means your mission will be complete!
Still not sure? Don't worry!

Whilst this does require you to be able to code, its probably not as hard as you think. Take a look at our example bots to get a feel for what's required.



Radio chatter

comments powered by Disqus