[okfn-labs] Crisismappers need your help

Daniel Lombraña González teleyinex at gmail.com
Wed Dec 5 17:08:20 UTC 2012


Dear all,

This week, Patrick Meier from CrisisMappers.net contacted us about creating
an application in PyBossa for classifying tweets from the Pablo Typhoon
disaster in Philippines.

Today I've created an small application for helping them, and it is now
published in the front page of crowdcrafting.org. They need help in two
fronts:

1.- Classifying the tweets (it is really simple, hehe)
2.- Extracting the data from crowdcrafting.org

For the second item I think some of you could help as you are good
developers and they need to have this done by tomorrow, so any help is more
than welcome.

For downloading the data all you have to do is the following:

1.- Open this link in your browser
http://crowdcrafting.org/api/taskrun?app_id=211

The issue is that by default Crowdcrafting does not return more than 20
items/answers per page, but you can change that like this:

http://crowdcrafting.org/api/taskrun?app_id=211&offset=0&limit=100

offset for pages (increase it when you need it) and limit for the amount of
items that you want to get.

With the previous link all you get are the answers associated with the task
ID, so you need to actually do this first:

http://crowdcrafting.org/api/task?app_id=211&state=completed

This will give you all the tasks that have been completed, i.e. one with
ID: 3, then you can get all the answers for the completed and classified
tweet like this:

http://crowdcrafting.org/api/taskrun/3

Can someone help creating a small script for getting in one file all the
answers? Unfortunately I'll not be available tomorrow, so any help is more
than welcome!!!

Cheers and thanks in advance,

Daniel

PS: Source code of the application:
https://github.com/teleyinex/app-tweetclassification
-- 
··························································································································································
http://daniellombrana.es
http://www.flickr.com/photos/teleyinex
··························································································································································
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
··························································································································································
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/okfn-labs/attachments/20121205/04ef7df2/attachment-0001.html>


More information about the okfn-labs mailing list