On: 2010/09/21 Viewed: 11214 times
Shorter URL for this page: http://ozh.in/tq

If you want to browse your own tweet history, Twitter sucks. If you have published more than 3200 tweets, Twitter lost the older ones. On the other hand, WordPress does all this fine, so I made a plugin to archive all your tweets in WordPress

Live Example

My tweet archive: Ozh' Tweets (notice the cool stats in the sidebar)

Download

Download the plugin :
ozh-tweet-archiver.zip
Extract and upload to your blog, preserving directory structure.

Plugin Usage

  • Install a fresh new empty blog (a subdirectory of your current blog will be fine, or a tweet.domain.com subdomain, it doesn't matter)
  • Install and activate the plugin. Sit back.

Plugin Configuration

FAQ

Q: But (Alex King's Twitter Tools | Donncha's Tweet Tweet | Other guy's plugin ) does the same and more!
A: Exactly. "And more". I didn't need this.

Q: How are tweets imported?
A: As regular posts, with #hashtags converted as post tags if you wish (you'll want to do this), and a few post custom fields for other data (tweet source, in reply to, etc)

Q: I tried to import all my tweets for the first time but the page died with an error / timeout / alien abduction !!1
A: Just hit F5 to reload the page. There will be no duplicates.

Q: It seems my tweets are not archived, and every time I visit the plugin settings page it says it's going to archive them in [default delay I've picked]!
A: Your tweet archive is not visited enough so the cron job is not firing. Link to it here and there and make sure it's browsable by indexing robots, it should be fine.

Q: I've imported all my tweets but it did not convert all the hashtags in tags!
A: Conversion is done when a tweet is displayed, to save some queries during the import. After the very first import, browse your archive. Then, your or googlebot's visits will both trigger the cron job and the hashtag import.

Q: Does this work if my Twitter account is protected / private?
A: No. At the moment Twitter does not require authentication to fetch public tweets, which I wanted to do, so I didn't implement an auth system.

Q: I have more than 3200 tweets. How do I import & archive the old ones?
A: You don't. You're toast. Twitter itself has lost them.

Q: The [whatever] does not work!
A: Worksforme.

Q: What theme did you use for your Tweet archive?
A: A modified version of Stopdesign's to use some features of my plugin. It's available in this SVN repository (probably don't expect any update) or as this zip file: ozh-tweet-archive-theme. No support or anything on this, this is for example only.

Q: Can you add this or that feature?
A: Probably not. This plugin was made to perfectly fit my needs. But hey, who knows, maybe I'll feel the need for your idea? Go ahead and comment.

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/tq

Metastuff

This page "Ozh’ Tweet Archiver (Backup Twitter With WordPress)" was posted on 21/09/2010 at 11:12 pm
Watch this discussion : Comments RSS 2.0.

72 Blablas

    Pages: « 1 [2] Show All

  1. 51
    TwisterMc United States »
    thought, on 18/Jun/12 at 3:52 am # :

    We need to figure out how to get this to work with the new WordPress 3.4 Twitter shortcode.

  2. 52
    Rachelle Canada »
    said, on 19/Aug/12 at 11:07 pm # :

    Hi Ozh,
    Love this plugin, however, I may have found a bug.
    I have your Tweet Archiver installed on my main site…no problems. Everything works perfectly. Then I installed it on a subdirectory: /news on the same site.

    Everything works perfectly EXCEPT the Link #hashtags setting. If I set it to: 'Yes, pointing to Twitter search' it interferes with the 'More Tag' in posts. If I add a 'more tag' it displays on home page as: '#more-24″ class="more-link">More' instead of the word 'More' with hyperlink. If I set Link #hashtags to 'no' the More Tag works as it's supposed to.

    I have the same version of WordPress 3.4.1, same theme Grido, and same plugins on both the main site and subdirectory site.

    Any idea why this is happening?
    Thank you!

  3. 53
    Ozh »
    replied, on 26/Aug/12 at 8:50 am # :

    Rachelle » "more tag" within posts that are less than 140 characters? Kidding, right?

  4. 54
    Rachelle Canada »
    said, on 26/Aug/12 at 7:57 pm # :

    Hahaha… not on Tweet posts.
    I wanted a plugin where I could archive all my tweets as private posts but also publish the pertinent ones as blog posts. Twitter Tools, quite frankly, sux and doesn't archive the way your plugin does.
    I'm using a customized version of the Grido theme, so on the homepage I have Tweet posts mixed with blog posts/articles etc in a tumblog/pinterest style. The "more tag" is on the lengthy blog posts.

    Anyway, when I saw your reply this morning, I realized there was one more thing I didn't try. I had created a child theme for my blog and added the plugin in to the child theme. So, this morning I removed it from the child theme, added it to the parent theme et voila! the "more tag" issue disappeared.

    Have no idea what the problem was. I know enough php to make minor changes or additions but not enough to solve all problems. There must be a directory issue with my child theme and your plugin… but anyway, it's working again now… that's all that matters! :)

    On a side note: Will your plugin continue to work with the new Twitter API changes? Cheers!

  5. 55
    jiva United States »
    commented, on 30/Aug/12 at 4:41 pm # :

    Brilliant plugin. Looking forward to using it more! Thanks again for sharing.

  6. 56
    jiva United States »
    wrote, on 05/Sep/12 at 3:47 pm # :

    Hi, had a quick question on using #'s. My setting is to convert #'s into wordpress tags; however, when the tag is clicked in the wordpress post the url points to /tag/%post_tag%/ for all tags (resulting in no posts found). Do you have any suggestions to how I can fix this?

  7. 57
    Ozh »
    commented, on 05/Sep/12 at 4:40 pm # :

    jiva » indeed, that's a bug, I didn't notice that. I'll check and fix when I have some time

  8. 58
    Jiva United States »
    said, on 08/Sep/12 at 9:55 pm # :

    Thanks Ozh, great plugin otherwise. Looking forward to the update when you have some time!

    Cheers

  9. 59
    Mark C United States »
    thought, on 24/Sep/12 at 3:09 pm # :

    I've noticed that the "new" RTs are not being archived. Here's a diff that I think should work.

    https://gist.github.com/3775868

  10. 60
    TwisterMc United States »
    wrote, on 16/Dec/12 at 8:10 am # :

    It took a bit of digging, but I made this plugin 100x better in my opinion.

    I modified the import script to save the tweet id, then used WordPress' embed code to embed the Twitter URL into the post.

    Now instead of text, I get tweets with images and interactivity!

    Example: http://goo.gl/kQJEo

    My code may not be prefect (as my username is hard coded) but you can see what I changed here: http://pastebin.com/LACne6hB

  11. 61
    Ozh »
    replied, on 16/Dec/12 at 7:16 pm # :

    TwisterMc » Thanks for sharing. Not something I'd use but it may interest others, thanks for sharing

  12. 62
    Aldo Italy »
    said, on 20/Dec/12 at 5:39 pm # :

    Hi all,
    for those having the "%post_tag%" issue, you can fix it editing a very little piece of the plugin.

    Open the ozh-ta.php file and change the line 165 from this:

    1. $link = str_replace( '%tag%', $tag, $link );

    into this:

    1. $link = str_replace( '%post_tag%', $tag, $link );

    Hope this help and thanks to Ozh for sharing this plugin.

  13. 63
    Jiva United States »
    wrote, on 20/Dec/12 at 6:40 pm # :

    Thanks Aldo! This helped me!

  14. 64
    iair1234 Argentina »
    wrote, on 21/Dec/12 at 5:12 am # :

    Hi. Your plugin is great, got a site running my twitter backup in 30 minutes.

    Then, are you changing twitter connection to allow authorization? because twitter is dropping public rss support and I guess this plugin will break then.

    Thank you!

  15. 65
    Ozh »
    said, on 21/Dec/12 at 8:49 am # :

    iair1234 » we'll see. Twitter is a gigantic pain in the ass with its API.

  16. 66
    WPStuffs India »
    said, on 27/Dec/12 at 12:35 pm # :

    Thanks Ozh I have created my own Tweet blog with the help of your plugin…here it is – http://vivek.techiestuffs.com/tweets/

    Thanks again

  17. 67
    iair1234@gmail.com Argentina »
    wrote, on 04/Feb/13 at 5:27 pm # :

    Hi again, finally twitter will be breaking rss support on March 5th,

    I've found code to possibly add OAUTH support to your plugin:

    http://stackoverflow.com/questions/12916539/simplest-php-example-retrieving-user-timeline-with-twitter-api-version-1-1

    Your plugin is the only one doing this great task of archiving tweets in our own database, thus allowing real RSS!

    Thank you!

  18. 68
    Jiva United States »
    commented, on 28/Mar/13 at 12:16 am # :

    Just wanted to check in… is this plugin still working/supported? Mine seemed to stop updating in Mid March. I was going to uninstall/reinstall the plugin, but cannot find it via the Twitter "add a plugin" page…

  19. 69
    Ozh France »
    replied, on 28/Mar/13 at 8:01 am # :

    Jiva » Still working? http://planetozh.com/tweets/ yep. Supported? "Worksforme". Existing? http://wordpress.org/extend/plugins/ozh-tweet-archiver/ yep.

  20. 70
    oriste Cyprus »
    thought, on 28/Mar/13 at 11:12 am # :

    @Jiva Still works perfectly for me. See it at oriste.gr

  21. 71
    Jiva United States »
    commented, on 31/Mar/13 at 5:43 am # :

    Your right, it still works. Sorry for the false alarm – I disabled and reneabled it a few times and it started working again. Must have been my server or a conflicting plugin. Once again, great plugin – thanks again.

  22. 72
    iair Argentina »
    commented, on 13/Jun/13 at 2:43 am # :

    Is it working? I noticed twitter deprecated API V1, and now requires authentication.
    Please update on this!

    Thank you!

Pages: « 1 [2] Show All

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.