digitalmethodsinitiative / dmi-tcat

Digital Methods Initiative - Twitter Capture and Analysis Toolset
Apache License 2.0
367 stars 114 forks source link

php klout/capture.php #117

Closed psegovias closed 9 years ago

psegovias commented 9 years ago

Only get this:

php capture.php

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

sleeping

It's this ok? no table created or nothing i can see.

Any idea?

ErikBorra commented 9 years ago

We haven't used the capturing of Klout scores in a while, so I have no recent experiences with it.

Don't forget to define the querybins for which it should capture klout scores in https://github.com/digitalmethodsinitiative/dmi-tcat/blob/master/capture/klout/capture.php#L15

Let me know your experiences.

psegovias commented 9 years ago

Notice: Use of undefined constant TEST - assumed 'TEST' in /home/xxx/public_html/dashboard/capture/klout/capture.php on line 15 sleeping

PHPMYADMIN: captura de pantalla 2015-05-11 a las 10 38 07

What is the correct way to insert the BINNAME on capture.php?

ErikBorra commented 9 years ago

Seems like you didn't put your binname 'TEST' in quotes in the array?

psegovias commented 9 years ago

Now run OK :+1:

But, its normal a loop and get inserting in table the same values every second? like this:

Doing TEST: 2015-05-11 12:21:55 - Fuentes_Darwitz - '334955244384138891' - 200 2015-05-11 12:21:55 - gustavocuevasva - '228557698740368528' - 200 2015-05-11 12:21:55 - magdalenar813 - '370702566155843276' - 200 2015-05-11 12:21:56 - 1957Aleg - '120189837891295536' - 200 2015-05-11 12:21:56 - AnalistaCrisUC - '110619683363412570' - 200 2015-05-11 12:21:56 - fmstylocl - '248260950819026343' - 200 2015-05-11 12:21:56 - yvanessa78 - '238409329787763805' - 200 2015-05-11 12:21:57 - vmunitai - '330451645862927292' - 200 2015-05-11 12:21:57 - HERNANSALDANAC - '303148567887657238' - 200 2015-05-11 12:21:57 - perasolmo - '397442686460123214' - 200 2015-05-11 12:21:57 - JbrionesJulio - '124974910482578020' - 200 2015-05-11 12:21:58 - sacz_iris - '228276229167938256' - 200 2015-05-11 12:21:58 - quecalaloca - '264586499083017909' - 200 2015-05-11 12:21:58 - jalejandro2806 - '163536982761609106' - 200 2015-05-11 12:21:58 - albertotarolaja - '255579299607646560' - 200 sleeping

Doing TEST: 2015-05-11 12:22:01 - Fuentes_Darwitz - '334955244384138891' - 200 2015-05-11 12:22:01 - gustavocuevasva - '228557698740368528' - 200 2015-05-11 12:22:01 - magdalenar813 - '370702566155843276' - 200 2015-05-11 12:22:01 - 1957Aleg - '120189837891295536' - 200 2015-05-11 12:22:01 - AnalistaCrisUC - '110619683363412570' - 200 2015-05-11 12:22:02 - fmstylocl - '248260950819026343' - 200 2015-05-11 12:22:02 - yvanessa78 - '238409329787763805' - 200 2015-05-11 12:22:02 - vmunitai - '330451645862927292' - 200 2015-05-11 12:22:02 - HERNANSALDANAC - '303148567887657238' - 200 2015-05-11 12:22:03 - perasolmo - '397442686460123214' - 200 2015-05-11 12:22:03 - JbrionesJulio - '124974910482578020' - 200 2015-05-11 12:22:03 - sacz_iris - '228276229167938256' - 200 2015-05-11 12:22:03 - quecalaloca - '264586499083017909' - 200 2015-05-11 12:22:04 - jalejandro2806 - '163536982761609106' - 200 2015-05-11 12:22:04 - albertotarolaja - '255579299607646560' - 200 sleeping

Doing TEST: 2015-05-11 12:22:06 - Fuentes_Darwitz - '334955244384138891' - 200 2015-05-11 12:22:06 - gustavocuevasva - '228557698740368528' - 200 2015-05-11 12:22:06 - magdalenar813 - '370702566155843276' - 200 2015-05-11 12:22:07 - 1957Aleg - '120189837891295536' - 200 2015-05-11 12:22:07 - AnalistaCrisUC - '110619683363412570' - 200 2015-05-11 12:22:07 - fmstylocl - '248260950819026343' - 200 2015-05-11 12:22:07 - yvanessa78 - '238409329787763805' - 200 2015-05-11 12:22:08 - vmunitai - '330451645862927292' - 200 2015-05-11 12:22:08 - HERNANSALDANAC - '303148567887657238' - 200 2015-05-11 12:22:08 - perasolmo - '397442686460123214' - 200 2015-05-11 12:22:08 - JbrionesJulio - '124974910482578020' - 200 2015-05-11 12:22:09 - sacz_iris - '228276229167938256' - 200 2015-05-11 12:22:09 - quecalaloca - '264586499083017909' - 200 2015-05-11 12:22:09 - jalejandro2806 - '163536982761609106' - 200 2015-05-11 12:22:09 - albertotarolaja - '255579299607646560' - 200 sleeping

psegovias commented 9 years ago

What about this?

https://github.com/digitalmethodsinitiative/dmi-tcat/blob/master/capture/klout/capture.php#L93-L126

ErikBorra commented 9 years ago

It should only redo the same user once per month, as per https://github.com/digitalmethodsinitiative/dmi-tcat/blob/master/capture/klout/capture.php#L50

https://github.com/digitalmethodsinitiative/dmi-tcat/blob/master/capture/klout/capture.php#L93-L126 has some features commented out: Klout also allows one to derive the most important topics per person, etcetera. We've commented this out as this resulted in too many extra requests to the Klout API. Feel free to uncomment it :)

psegovias commented 9 years ago

Thanks Erik! Works great!