natural language toolkit twitter c 20012023 nltk project ewan klein ewaninf ed ac uk url https www nltk org for license information see license txt nltk twitter package this package contains classes for retrieving tweet documents using the twitter api natural language toolkit twitter c 2001 2023 nltk project ewan klein ewan inf ed ac uk url https www nltk org for license information see license txt nltk twitter package this package contains classes for retrieving tweet documents using the twitter api
try:
    import twython
except ImportError:
    import warnings

    warnings.warn(
        "The twython library has not been installed. "
        "Some functionality from the twitter package will not be available."
    )
else:
    from nltk.twitter.util import Authenticate, credsfromfile
    from nltk.twitter.twitterclient import (
        Streamer,
        Query,
        Twitter,
        TweetViewer,
        TweetWriter,
    )


from nltk.twitter.common import json2csv