Quick HowTo:
- have the Beagleboard connected to the Internet (yay, my Beagleboard only had the USB cable for power and network and ssh access)
- have also Python installed on Beagleboard (disclaimer: you may need some extra opkg install python-dev or similar command; the Angstrom Narcissus does not install everything by default)
- grab Python Twitter utility
- download the python-twitter-0.6.tar.gz (or more recent version, if available) on the Beagleboard (for example, onto /tmp) and unpack it (tar xpzvf python*.gz)
- enter the new directory and execute python setup.py build and then python setup.py install (doing is easier than describing); a few message lines, no errors;
- write and run this Python program:
import twitter
usr = 'your_email_address_for_twitter_login@somehost.com'
psw = 'your_twitter_password'
api = twitter.Api(usr,psw)
msg = 'wow... this is a Beagleboard twitting.'
status = api.PostUpdate(msg)
print status.text
It "just works" here. Even if I do not like Python too much
- have the Beagleboard connected to the Internet (yay, my Beagleboard only had the USB cable for power and network and ssh access)
- have also Python installed on Beagleboard (disclaimer: you may need some extra opkg install python-dev or similar command; the Angstrom Narcissus does not install everything by default)
- grab Python Twitter utility
- download the python-twitter-0.6.tar.gz (or more recent version, if available) on the Beagleboard (for example, onto /tmp) and unpack it (tar xpzvf python*.gz)
- enter the new directory and execute python setup.py build and then python setup.py install (doing is easier than describing); a few message lines, no errors;
- write and run this Python program:
import twitter
usr = 'your_email_address_for_twitter_login@somehost.com'
psw = 'your_twitter_password'
api = twitter.Api(usr,psw)
msg = 'wow... this is a Beagleboard twitting.'
status = api.PostUpdate(msg)
print status.text
It "just works" here. Even if I do not like Python too much
Nessun commento:
Posta un commento