Quantcast
Channel: keyword | Croncast - Life is Show Prep
Viewing all articles
Browse latest Browse all 19

Twitter meet Castlock, Castlock meet Twitter

$
0
0
Yesterday was a crazy day so I didn't get to make a post about hacking together a script to dump my twitter posts into castlock (the underpinnings of this site).

The entire reason for doing it was to have the ability to blog on the run from my phone by sending a text message to twitter and getting it into the blog without having to open the castlock control panel.

The fun part was thinking up a format for the tweets that when the script reads them it can distinguish between a tweet for blog and a tweet for tweets sake. The format looks like this:

title*blog body for post.*keyword1-keyword2-keyword3

The php script splits the tweet at the *'s and then at the -'s to format it for the castlock insert.

There were a couple small bugs that took a while to iron out. The first was that the timestamp from twitter is 5 hours ahead of my servers time zone (not very conducive to keeping posts in order) and getting the cron to run right on the script.

But it's all good now and every 5 minutes the script runs looking for little tweets to put in it the Croncast belly.

Tags: tweet twitter integration castlock Croncast twitter keywords for seo

Viewing all articles
Browse latest Browse all 19

Trending Articles