ckoepp/TwitterSearch

PEP-8

superbobry opened this issue · 1 comments

TwitterSearch is great, but do you plan to provide a more PEP-8-ish API?

For instance, here's an example from the README:

from twitter_search import *

tso = TwitterSearchOrder() # create a TwitterSearchOrder object
tso.set_kewords(['Guttenberg', 'Doktorarbeit']) 
tso.set_language('de')
tso.set_count(7) 
tso.set_include_intities(False) 

try:
    ts = TwitterSearch(
        consumer_key = 'aaabbb',
        consumer_secret = 'cccddd',
        access_token = '111222',
        access_token_secret = '333444'
     )

    for tweet in ts.iter_search(tso):
        # ...
except TwitterSearchException as e:
    print(e)

You're right - even if I don't like the scheme myself. But I guess PEP-8 is getting more important as TwitterSearch became more used than I thought it would be.

So I'll switch to PEP-8 in the next version.