···99## How to install
10101111 $ pip install twitter-to-sqlite
1212+1313+## Authentication
1414+1515+First, you will need to create a Twitter application at https://developer.twitter.com/en/apps
1616+1717+Once you have created your application, navigate to the "Keys and tokens" page and make note of the following:
1818+1919+* Your API key
2020+* Your API secret key
2121+* Your access token
2222+* Your access token secret
2323+2424+You will need to save all four of these values to a JSON file in order to use this tool.
2525+2626+You can create that tool by running the following command and pasting in the values at the prompts:
2727+2828+ $ twitter-to-sqlite auth
2929+ Create an app here: https://developer.twitter.com/en/apps
3030+ Then navigate to 'Keys and tokens' and paste in the following:
3131+3232+ API key: xxx
3333+ API secret key: xxx
3434+ Access token: xxx
3535+ Access token secret: xxx
3636+3737+This will create a file called `auth.json` in your current directory containing the required values.
3838+3939+## Retrieving your Twitter followers
4040+4141+The `twitter-to-sqlite followers` command retrieves details of every follower of the specified account. You can use it to retrieve your own followers, or you can pass a screen_name to pull the followers for another account.
4242+4343+The following command pulls your followers and saves them in a SQLite database file called `twitter.db`:
4444+4545+ $ twitter-to-sqlite followers twitter.db auth.json
4646+4747+The `auth.json` path argument is optional - if you omit it the script will look for `auth.json` in your current directory.
4848+4949+To retrieve followers for another account, use:
5050+5151+ $ twitter-to-sqlite followers twitter.db --screen_name=cleopaws
5252+5353+See [Analyzing my Twitter followers with Datasette](https://simonwillison.net/2018/Jan/28/analyzing-my-twitter-followers/) for the original inspiration for this command.
5454+