digitalmethodsinitiative / dmi-tcat

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

onepercent #4

Closed supersambo closed 10 years ago

supersambo commented 10 years ago

Hi Erik, I updated tcat about a week ago and keyword tracking is working well so far. I discovered that there is already a script to get the onepercent sample. Is this already integrated? When I run php dmi-tcat/capture/stream/onepercent.php it returns the following error:

PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/supersambo/www/dmi-tcat/common/functions.php on line 5 PHP Warning: Invalid argument supplied for foreach() in /home/supersambo/www/dmi-tcat/capture/common/functions.php on line 18 PHP Fatal error: Call to undefined function processstweets() in /home/supersambo/www/dmi-tcat/capture/stream/onepercent.php on line 58

I assume this function is not finished yet? or is it a problem with my setup?

ErikBorra commented 10 years ago

Hi supersambo :)

pardon the slow reply!

The onepercent script is functional but currently capture/common/functions.php expects there to be a querybins.php file with an (empty) $querybins array. This problem will be solved when we release the query manager interface.

Note that you can only run one of the track, onepercent and follow capture scripts at the same time, as Twitter only allows one active streaming connection per IP address. You could try to bind to different IP addresses (locally or via socat on another machine) but this feature is currently undocumented.

IntoTheDigital commented 10 years ago

Hi Erik,

Sorry to ask, but will the query manager interface be released sometime in the next few months?

Thanks, Sam

ErikBorra commented 10 years ago

Hi Sam,

the query manager interface will be released very soon!

Best,

Erik