counterfacto

small software tool to analyze twitter and highlight counterfactual statements
git clone git://parazyd.org/counterfacto.git
Log | Files | Refs | README | LICENSE

commit 6940730ed8abc3c8e418096d1eb225dc43f254e3
parent 79ca35caf2ce3319fd9a4e39fdeef712dfc0a875
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 22 Sep 2016 17:27:17 +0200

use default on search, not recent

Diffstat:
Mcounterfacto | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/counterfacto b/counterfacto @@ -41,6 +41,7 @@ twit_consumer_secret = '' twit_access_key = '' twit_access_secret = '' + def main(): ## credential check json #print(api.VerifyCredentials()) @@ -81,9 +82,12 @@ def main(): if len(sys.argv) >= 3: searchterm = ' '.join(sys.argv[2:]) + else: + searchterm = sys.argv[2] + statuses = api.GetSearch(term=searchterm, - count=100, - result_type="recent") + count=100) + #result_type="recent") #for s in statuses: # print(s.text)