[okfn-labs] Crisismappers need your help

Daniel Lombraña González teleyinex at gmail.com
Wed Dec 5 22:51:21 UTC 2012


Hi everyone,

I've some time left after dinner and I've coded the script to process the
results. The only problem is that we have to fix the pybossa-client as it
has a minor typo (Gregor, can you help? I've committed a patch to
pybossa-client, can you check it and if its correct upload a new version to
pypi so Patrick can use it on its own?).

The code is in the repository:
https://github.com/PyBossa/app-tweetclassification

Use the script getResults.py. It will download all the completed tasks and
write a CSV file. Adjoining you can find all the tasks completed and their
answers in CSV format.

If you want to use the script you will need to install the patched version
of pybossa-client, so can someone help in getting the results tomorrow?

Cheers,

Daniel


On Wed, Dec 5, 2012 at 7:52 PM, Patrick Meier (CrisisMappers) <
patrick at crisismappers.net> wrote:

> Thank you very much, Daniel!
>
> Hi All, great to be in touch with you. Here's the call we've put out to
> recruit digital volunteers:
>
> http://iRevolution.net/2012/12/05/help-microtask-pablo
>
> Once the tweets are processed, we will need someone who knows how to
> convert from JSON to CSV. Any chance someone in your network(s) might be
> able to help tonight (Europe time)?
>
> Thanks very much!
> Patrick
>
>
>
> On Wed, Dec 5, 2012 at 12:08 PM, Daniel Lombraña González <
> teleyinex at gmail.com> wrote:
>
>> 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.
>>
>> ··························································································································································
>>
>
>


-- 
··························································································································································
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/8433018e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: results.csv
Type: text/csv
Size: 4437 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/okfn-labs/attachments/20121205/8433018e/attachment-0004.csv>


More information about the okfn-labs mailing list