How to print tweets on the printer in real time?

I have a thermal printer has zavolela and very hochitsya connect it to Twitter. Just for fun. :) But the problem is that I don't know much about programming. Can anyone tell me the easiest way to print the tweets in real time?

PS. It's all this post's fault. http://habrahabr.ru/post/141308/
October 8th 19 at 00:54
1 answer
October 8th 19 at 00:56
Ready-made solutions do not know if you are interested in programming — I would do something like this... Get tweets using the twitter streaming api, collect the right amount (not to print 1 tweet per sheet), and then just print :-)

Ruby:
port = "LPT1:", # Windows printer port
port = "/dev/lpt" # Linux printer port
File.open(port, "wb") do |printer| 
 printer.write(our_tweets) 
 printer.flush 
end


Well, screw the GUI using QtRuby that was hanging in the tray and you can turn it off.
Thank you very much! Try how to deal with Ruby and QtRuby - Jaylen_Mitchell commented on October 8th 19 at 00:59
Yes it is possible in principle, but on a dot matrix printer with paper in the form of a roll. - Kory_Lang commented on October 8th 19 at 01:02
It's just like that. There is a roll of paper, and after printing cuts printer printed text. - Jaylen_Mitchell commented on October 8th 19 at 01:05
It doesn't have to deal with ruby, I just gave an example since I know him. Like python has good integration with Qt, you can look at him. The choice is yours) - bernadine.Wiegand53 commented on October 8th 19 at 01:08
Heh. Had never pitchells to programming. What would you recommend? How or what is easier? - Jaylen_Mitchell commented on October 8th 19 at 01:11
Easier to copy-paste tweets to word and press ctrl+p. So if life never touched the programming, then vseravno what to choose, for You 80% of languages will be at the beginning of the same. - aniya.Kertzmann65 commented on October 8th 19 at 01:14
Specifically for this simple task — I think any language will do. If you are planning to teach it on... the choice of YAP is already beyond the scope of this topic. - bernadine.Wiegand53 commented on October 8th 19 at 01:17
How anyone, for me protinica task. Well, okay. I'll leave this idea. Still something I don't. - Jaylen_Mitchell commented on October 8th 19 at 01:20

Find more questions by tags Thermal printersProgramming