My Sites
Latest Blog Post
Extracting Google+ posts and writing them to a database
18th Sep 11 • 0 comment(s) • Read whole blogFullscreen
Quick nibblette of PHP code to demonstrate the extraction of Google+ posts. This little script will pull 100 posts and insert them into a database for you to do what you want with. Posts aren't written to the database more than once, which means you can use the script with a cronjob to periodically record posts.

Posts with attachments are ignored, but this data (and a lot more) can be included too. Another point to note too is that the ID column has no correlation to the order of which posts were published, so if you're just printing out rows don't expect them to automatically be in the correct order; order by datetime.

There are 2 config files to edit.

includes/config.php
Includes database information and your Google+ ID, which can be found in the URL when viewing your profile.

includes/src/config.php
All you really need to set here is 'developer_key', which is your API key, found at https://code.google.com/apis/console

Download
Latest Mini Post
Google SEO Javascript Test
18th Sep 11 • Read other mini posts
Google SEO Javascript Test
@peabay
Contact
Your Name
Your Email
Blog
Blog
Extracting Google+ posts and writing them to a database

Quick nibblette of PHP code to demonstrate the extraction of Google+ posts. This little script will pull 100 posts and insert them into a database for you to do what you want with. Posts aren't written to the database more than once, which means you can use the script with a cronjob to periodically record posts.

Posts with attachments are ignored, but this data (and a lot more) can be included too. Another point to note too is that the ID column has no correlation to the order of which posts were published, so if you're just printing out rows don't expect them to automatically be in the correct order; order by datetime.

There are 2 config files to edit.

includes/config.php
Includes database information and your Google+ ID, which can be found in the URL when viewing your profile.

includes/src/config.php
All you really need to set here is 'developer_key', which is your API key, found at https://code.google.com/apis/console

Download
18th Sep 11 • 0 comment(s) • Add comment
Nattr

Soon to release my latest project - Nattr

Chat rooms and forums are excellent, but they both have their own major flaws. Without a huge amount of activity a chat application on your website will never be used and can even have a detrimental affect on the website itself. Forums solved this problem by making chat 'non-instant', meaning users could discuss a topic over a period of days. But in the creation of forums, instant chat was lost. Posters are encouraged to write articles, instead of a simple 'yes' or 'no'.

Nattr is an attempt at combining the two, being both instant and non-instant, long posts and short posts.


It wasn't actually a conscious effort to solve any problem though, I just wanted to learn CakePHP.
24th Jul 11 • 0 comment(s) • Add comment
Nattr

Soon to release my latest project - Nattr

Chat rooms and forums are excellent, but they both have their own major flaws. Without a huge amount of activity a chat application on your website will never be used and can even have a detrimental affect on the website itself. Forums solved this problem by making chat 'non-instant', meaning users could discuss a topic over a period of days. But in the creation of forums, instant chat was lost. Posters are encouraged to write articles, instead of a simple 'yes' or 'no'.

Nattr is an attempt at combining the two, being both instant and non-instant, long posts and short posts.


It wasn't actually a conscious effort to solve any problem though, I just wanted to learn CakePHP.
24th Jul 11 • 0 comment(s) • Add comment
Bio
Bio
I work for a digital marketing agency in Soho, London as a web developer. I develop webs.

In 2010 I launched Uploadie.com; a file hosting website which was featured in Web User magazine and dozens of online media sites and blogs. Uploadie grew pretty rapidly, but with my new job at Well Studio I was unable to maintain it, so in 2011 it was mothballed.

Now, while working for Independents United, I'm involved in some really exciting projects.

My side project is Nattr; an ajax chat forum. Check it out!
Twitter