Posts Tagged ‘ twitter ’

ΖψϊΓΓє® Welcomes You!

After reading the Headline you might be wondering if this post contains any text regarding Hermaphrodites(Zwitter in German) or of Rammstein’s Song.

But NO!.

It is just a front-end GUI for twitter API created using python, Qt bindings for python and twitter module for python developed by DeWitt Clinton (My Sincere Thanks to him for creating such an awesome module).

The name happens to be just fusion of my Nick Zarthon and Twitter i.e Zwitter ..:P

When started settings dialog gets opened asking for your username and password.

After Entering the details it loads your data and then displays the main Window, now you can perform any function you like just by clicking the button. Titles of the buttons are self explanatory for their functions.

The major coding was done to support contextMenu(Menu that appears after we Right Click) in listWidget(Main Display Area)

Different contextMenu is displayed depending on what type of element is clicked and currently what type of list is being shown,

  • Elements are of two types, User and Status
  • List type can be of Public Timeline, Get Replies,  Latest Friends Status and Direct Message

Through them you Create friends, Destroy friendship, Reply, Retweet(I just retweets them, you cannot edit it), Get information about a particular user, Post New Direct Message, reply to one etc….

You can also reply to more than one person at a time, when you press Reply button, you will see following dialog

It shows you all your friends list, you can also see their Real Names just selecting Real Names from combo Box.

To add a user to reply list just Double Click its name, you can also filter out the list by entering initials in search label, it will show all the members that contain the string in Search Field.

There is one constraint, you can only edit one line as soon as you press enter the text is posted.

Similarly there is a dialog for Message.

Source code can be found at

Try IT!! And please Reply how you like it or have any questions and feel free to send bugs at



A simple Command line API for Twitter update

After having wasted almost half of my vacations, one night I though of developing a simple command line API for Twitter, though there are thousands of applications available for tweeting, I developed it to only get more knowledge of libcurl .

AUTHOR: Mohit Kothari
It's a simple Command Line API for updating your status

Enter Username: abc
Enter Password(Max 100):
Enter the message: add

It will return a blob of JSON information

using namespace std;

void input_user(string &user){
	cout<<"Enter Username: ";

void input_pass(string &pass){
	char ch[100];
	printw("Enter Password(Max 100): ");
	pass = ch;
int main(int argc, char* argv[]){
	string msg,user,pass,final="";
	string status = "";
	char *fina, *sta;


	cout<<"Enter the message: ";

	status += "status="+msg;
	final += "http://"+user+":"+pass+"";

	fina = new char[final.size()+1];
	sta=new char[status.size()+1];
	CURL *curl;
	CURLcode res;
	curl = curl_easy_init();


	return 0;

I have shared the Source in git-hub:

It just updates your status, it doesn’t have the function to get recent tweets, I am trying to implement it
and also is looking forward to build a GUI using Qt.
Lets hope it turns out good.