Twitter bot for yahoo

Jan
31
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...

Posted in Technology by taggy | 1 Comment »

After my previous attempt at making a twitter bot resulted with a decent liking from people ,i thought i would hack up another one .

Some of my friends are addicted to yahoo and they r on it most of the days so why not a bot to help you twitter from yahoo messenger ?

However there were some fundamental problems,one of them was to maintain sessions . There was virtually no way i could keep a user logged in without having to store his/her password which i absolutely hated ! and asking on the twitter mailing lists only told me that i would have to wait until twitter adopts OAuth .

But still myself and Doniv ,making a yahoo bot for twitter was worth a try for two reasons .

  • We <3 twitter
  • Making a bot for yahoo was going to be a little more challenging than making ajabber bot since yahoo messenger protocol was not open like the jabber .

But thanks to Philips Tellis and his Libyahoo2 ,life was going to be much easier .

And we started with it . First we setup a page tocheck for user credentials and update his yahooid in to out database.We only store their twitter and yahoo username .

Then set about writing the bot in C/Python .

Here is how its going to be started ,its not the bot you want to use everyday because it does have a few flaws but if you are out without Gmail then you could as well use it .

After registering with the website here http://theyagar.com/twitter ,add twitterme as your friend at yahoo.

Now the most important part ,the tweet sending part .As i mentioned earlier ,we could virtually find no way of having users logging in without raw text passwords and so this ugly looking way (honestly) .

twitter_username twitter_password twiter_message is the format .for eg,

myusername mypassword hey test message to twitter

Now what happens next is it goes in to our DB and tries to match your followers with registered users and if it does then the yahooid is sent a tweet .

So while you can always send a tweet from out client ,you can recieve it only if your friends send it from yahoo bot too .

Twitter i dont think has any hook to be notified when there is a tweet although we could poll but all that for later .

This works from Gaim/Pidgin ,Meebo and Yahoo messenger Windows .Iam not sure about the other clients since all these client send out html messages and parsing out them was a headache .

Let me show you some screenshots of how this works

Sending the message from Pidgin

pidgin.jpg

A follower recieving his friends tweet on his yahoo account :)

yahoo.jpg

I will put the code up for download ,i understand if some people have problems in giving out the passwords as plain text in the IM window but we couldnt find a way out . If you know a better way to do it then please leave back a comment or mail from the contact form i would love to hear back from you .

Again as it started this bot was made purely for learning and for the fun of it .You can use it trusting us .

I will put up the source code in sometime after cleaning up the mess . Or if you dont mind having a code that can be a little difficult to understand then mail me and i would send it to you .

So please go ahead ,use out bot and tell us why it sucks :P .

http://theyagar.com/twitter

And yes the bot is now running from a adhoc server and it wont run on the mediatemple servers :( gives me a error . Is anyone willing to host our bot ? it certainly doesnt require root( I run it completely on a non root) .We would love to have it hosted in a place it can run freely .

It requires gcc and python 2.4 installed anyone willing ?

or any ideas/sugegstion/improvements ? please feel free to comment

Lesson i learnt : Necessity is the mother of all inventions :)

Clean up your Screen !

Jan
25
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Posted in LOL!!, pics n videos by uday | No Comments »

My friend sent me this cool forward. A great way to clean up your screen :).


http://www.linein.org/media/screenclean.swf

Have a towel ready :) ! Enjoy!

UPDATE: They pulled down the .swf file. It looks like the traffic spike was unanticipated.

Reno Trip Pictures

Jan
23
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 3.33 out of 5)
Loading ... Loading ...

Posted in Personal, pics n videos by uday | No Comments »

My brother was in town after a long gap and I took him around. We spent the evening of Saturday in Reno and Tahoe.

I did not expect Tahoe to be so beautiful during January. It was a pleasant surprise to watch the Sun, the Snow, the Water, the Sand, the Clouds, the Wind, the greenery and the Snow capped mountains - all in one surrounding.

Here are some pictures from the trip - enjoy !

Another cause

Jan
21
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Posted in Personal, Social Service by taggy | 1 Comment »

The last time i wrote about a cause for helping someone it was thamarai selvan .Today its about someone else again . Gayathri,yes thats the name .

But unlike last time i wish this one comes out successful.I know there are many stories around us like this but i am posting this because i believe somewhere someone can reach out and all of us must contribute and like i said here .Its not always the result that is important sometimes the journey itself is worth taking and if the result is good then its win win .

I would request all of you to go through the website and see if you can contribute in your own ways .

A JOURNEY OF THOUSAND MILES MUST BEGIN WITH A SINGLE STEP

NO AMOUNT IS TOO SMALL - EVERY RUPEE COUNTS

Pitch in for it might be that some few rupees or dollars they have been waiting for . ..

http://www.helpgayatri.org/

http://www.caringbridge.org/cb/viewMyStory.do?method=executeInit

Lets spread the word :)

A Spoof on Microsoft Surface

Jan
17
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Posted in Technology by uday | No Comments »

Here is a video that makes fun of the Microsoft Surface without being overbearing. It is a youtube version of an otherwise popular commercial, except the voice was stitched in by the folks at SarcasticGamer.com

You will love it

Jan
16
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...

Posted in Personal by taggy | No Comments »

Here is a pic that i absolutely loved ,its interpretation ofcourse is varied as everyone might see it .

Hidden dreams

Photo credits: Rini Sarkar (Link )

then and now

Jan
15
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Posted in Economy by taggy | 1 Comment »

I have traveled across the length and breadth of India and I have not seen one person who is a beggar, who is a thief. Such wealth I have seen in this country, such high moral values, people of such caliber, that I do not think we would ever conquer this country unless we break the very backbone of this nation, which is her spiritual and cultural
heritage, and, therefore, I propose that we replace her old and ancient educational system, her culture, for if the Indians think that all that is foreign and English is good and greater than their own, they will lose their self-esteem, their native culture and they will become what we want them, a truly dominated nation

Read more here

http://www.languageinindia.com/april2003/macaulay.html

thanks to nukkad for the information and link :)

http://www.mumbai-central.com/nukkad/jan2008/msg00226.html

« Previous Entries