A simple python script to find bloggers on twitter

Hi! I know you are probably asking what the heck is he doing? I will be honest here, this is not a tutorial but a simple quick fix to a problem I faced last night. I was invited by an author to take part in the so called blog hopping. One of the requirements was to find at least five other authors with blogs to join the adventure. So, I asked myself, how could I make this as much fun as possible and learn something at the same time?

A really brief introduction to PHP syntax

In this php tutorial, I am going to start with some syntax then jump straight into building a simple shopping cart. Sounds exciting right? So, let us get started. Note: if you have used other languages like Java or Javascript, you will find some syntax used in PHP quite familiar. If this is your first language, do not worry, it is actually easier than you think: One more warning: The reason why I will not spend so much time teaching syntax is because there are more than enough tutorials online that do just that and I didn’t want to create yet another one!

Programming With PHP – Setting Up The Camp

After completing my first two challenges from Mozilla P2PU (HTML and Twitter API programming), I have decided to continue the amazing journey of learning new things. So what is up next for me? The answer is learning PHP. What does PHP stand for? It stands for PHP: Hypertext Preprocessor – which is a recursive acronym.

The next question you might be asking is: what the heck is PHP? I will make it simple enough to understand and then leave the rest to PHP on Wikipedia . So, php is an open-source server-side scripting language designed for web development to produce dynamic web pages. Something worth mentioning here is Rasmus Lerdorf – the creator of PHP (Give credit where it is due)!

How To Use Github Public Repository

Let us learn how to use github public repository.This happens to be my last post on this Programming With Twitter API journey. I do not feel sad because this is actually just the beginning! I will not stop here, I will keep making something better out of it. This has been a great adventure, very informing and fun. So, without much a do, I want to show you(if you have not done this before), how to make our code publicly accessible to interested people who want to read it and even use it for their own learning or applications. I am going straight to github – by the way this is not the only one, look for bitbucket or something that makes you happy.

Patience, Young Padawan – More Code

Today, I am going to explore farther or deeper into what we can do with what Twitter API calls returns to us. I will make the whole post a step-by-step tutorial so that anyone interested in trying the codes out can do so with ease. So, let us get started.

[python]

#Always remember to use comments when writing code
#since we are using Python as our programming language
#of choice, we will make sure to import the necessary
#modules or libraries into our file

import urllib2
import json

[/python]

Hone Your Powers – Programming 101

In this challenge, we are required to learn some basic python or ruby constructs that could be useful while converting data returned by Twitter API calls into useful information that we can use in applications. Of course we don’t have to use either of those languages. There are other great languages like Javascript and PHP that you could give a shot! Either way, let us start this ball rolling: I am going with Python!

[python]

#make a simple dictionary/hash, add some items to it
#experiment on retrieving them by key and by value
#dictionaries are mutable