export twitter tweets

12
With Twitter Archiver , you can save tweets for any #hashtag or search results in a Google sheet automatically. You can track and archive what people are saying about your brand, capture interesting tweets around an hashtag, create a tweetbook with your own tweets and more. The Twitter Archiver program works in the background and automatically adds new tweets as they arrive. It can even fetch older tweets for the previous 6-9 days. Here are some sample search terms that you try monitoring and archiving with the Twitter Archiver. #IndianEnglish - Archive all tweets with this particular hashtag. to:twitter filter:links - Show all tweets sent to @twitter user that have links (URLs) in the tweet. iPad OR iPhone OR iPod - Show tweets that mention either of these Apple products. from:narendramodi lang:hi - Show tweets from this user that are written in a particular language (say Hindi) You can get your copy of the Twitter Archiver from Digital Inspiration . Twitter Archiver Premium Page 1 Digital Inspiration www.ctrlq.org

Upload: amit-agarwal

Post on 01-Apr-2016

240 views

Category:

Documents


3 download

DESCRIPTION

Save twitter search results forever in a Google sheet with Twitter Archiver. Available at http://www.labnol.org/twitter-archiver

TRANSCRIPT

Page 1: Export Twitter Tweets

With Twitter Archiver, you can save tweets for any #hashtag or search results in aGoogle sheet automatically. You can track and archive what people are saying aboutyour brand, capture interesting tweets around an hashtag, create a tweetbook withyour own tweets and more.

The Twitter Archiver program works in the background and automatically adds newtweets as they arrive. It can even fetch older tweets for the previous 6-9 days.

Here are some sample search terms that you try monitoring and archiving with theTwitter Archiver.

• #IndianEnglish - Archive all tweets with this particular hashtag.• to:twitter filter:links - Show all tweets sent to @twitter user that have links

(URLs) in the tweet.• iPad OR iPhone OR iPod - Show tweets that mention either of these Apple

products.• from:narendramodi lang:hi - Show tweets from this user that are written in a

particular language (say Hindi)

You can get your copy of the Twitter Archiver from Digital Inspiration.

Twitter Archiver Premium

Page 1Digital Inspiration www.ctrlq.org

Page 2: Export Twitter Tweets

1. Create a Twitter App

Go to apps.twitter.com, sign-in with your existing Twitter account and click the "Create NewApp" button to make a new Twitter Application for archiving tweets. The app will have read-only access to Twitter meaning it will only be used for fetching Twitter search results butwon't be able to post tweets.

Twitter Archiver Premium

Page 2Digital Inspiration www.ctrlq.org

Page 3: Export Twitter Tweets

1.1 Describe the Twitter App

Give you Twitter app a unique name, fill in the description and puthttps://spreadsheets.google.com/macros in the Callback URL field. Agree to the termsand click the Create button to finish building your twitter archiver application.

Twitter Archiver Premium

Page 3Digital Inspiration www.ctrlq.org

Page 4: Export Twitter Tweets

1.2 Get the Twitter Keys

On the next page, click the "API Keys" tab and make a note of your API key and the APIsecret. We will need these values in a later step.

Twitter Archiver Premium

Page 4Digital Inspiration www.ctrlq.org

Page 5: Export Twitter Tweets

2. Install Twitter Archiver

Open the Twitter Archiver Premium sheet (available here) and choose "Make a Copy" underthe File menu to clone this sheet into your Google Drive.

Twitter Archiver Premium

Page 5Digital Inspiration www.ctrlq.org

Page 6: Export Twitter Tweets

2.1 Specify Search Queries

You may notice that the sheets inside the Spreadsheet are named as Search #1, Search #2and so on. You need to replace these with search terms or #hashtags that you would like tosheet to monitor and archive. You can specify as many as 10 different search queries in aspreadsheet.

Twitter Archiver Premium

Page 6Digital Inspiration www.ctrlq.org

Page 7: Export Twitter Tweets

3. Configure the app

Open the Google Script editor available under the Tools menu of the Google sheet.

Twitter Archiver Premium

Page 7Digital Inspiration www.ctrlq.org

Page 8: Export Twitter Tweets

3.1 Specify Twitter Keys

Replace KEY and SECRET on this screen with the consumer keys that were made availablewhen you created the Twitter application for Tweet Archiver.

Twitter Archiver Premium

Page 8Digital Inspiration www.ctrlq.org

Page 9: Export Twitter Tweets

3.2 Authorize the App

Choose the Initialize option under the Run menu. An "authorization required" dialog willpopup. Click the "Authorize" button and the Twitter Archiver will go live.

Twitter Archiver Premium

Page 9Digital Inspiration www.ctrlq.org

Page 10: Export Twitter Tweets

4. Installation Complete

Close the Google Script editor window and switch to the Google Spreadsheet. You'll see amessage box saying the Archiver is now active. Close the sheet and it will begin fetchingtweets in about 2-3 minutes.

Twitter Archiver Premium

Page 10Digital Inspiration www.ctrlq.org

Page 11: Export Twitter Tweets

5. Tips

The sheet has a special Twitter Archiver menu that offers a couple of helpful functions.

1. Clear Sheet - This will clear the content of the current active sheet but not the othersheets.

2. Stop Service - If you wish to stop the program from archiving any more tweets, usethis option.

3. Factory Reset - This will stop the service and also clear the content of all sheetsinside the spreadsheet.

4. Start Service - If you would like to re-initialize the service after the factory reset, usethis option.

Twitter Archiver Premium

Page 11Digital Inspiration www.ctrlq.org

Page 12: Export Twitter Tweets

Support

For help and support, send me an email at [email protected] or tweet @labnol.

If you require custom Google Apps Script, please visit ctrlq.org. You can find more usefulGoogle Scripts on Digital Inspiration.

Twitter Archiver Premium

Page 12Digital Inspiration www.ctrlq.org