Nougat Predominant Middleware

    tw2csv

    0.1.4 • Public • Published

    tw2csv

    Useful CLI tool for collecting tweets.

    If you haven't set up Node.js environment, you should install it.

    Install

    npm install -g tw2csv
    

    How to use

    At first, get your application's keys from apps.twitter.com and setup command.

    # directory name "tweets" is just an example 
    $ mkdir ~/tweets
    cd ~/tweets
    $ tw2csv

    If there isn't tw2csv-config.json, tw2csv will generate it automatically. You have to set Twitter app's keys to tw2csv-config.json like below.

    {
        "consumer_key": "***************************",
        "consumer_secret": "***************************",
        "access_token_key": "***************************",
        "access_token_secret": "***************************",
        "output_dir": "./"
    }

    Then you can run tw2csv!

    $ tw2csv search "Node.js" results.csv

    Commands

    Search Tweets

    REST API: search/tweets

    $ tw2csv search "KEYWORDS FOR SEARCH" OUTPUT_FILENAME.csv

    Options

    • --bots - Include tweets by bots.

    Search Tweets from Stream

    (expetimental)

    $ tw2csv stream "KEYWORDS FOR SEARCH" OUTPUT_FILENAME.csv

    Check API Access Limits

    $ tw2csv limit

    Install

    npm i tw2csv

    DownloadsWeekly Downloads

    0

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    34.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar