r/Python • u/werdest • Feb 22 '13
So I just made a twitterbot in python. It tweets passages of any book I give it. Right now it's set to Infinite Jest. Check it out!
https://twitter.com/finitejestbot3
u/allthediamonds Feb 22 '13
You should really share the code. If you're just learning Python, you could benefit from community feedback.
2
u/hfulcher Feb 25 '13
I don't understand why so many people are downvoting. He is proud of his work and wants to show it to a relevant community (although code would make this a lot easier to appreciate)
1
u/sente %cpaste Feb 26 '13
Nice :) So awhile ago I made a bot which is tweeting the whole bible -- @Biblical_Tweets, I'll probably have it just start over once after it finishes. It's pretty random as I'm not a bit religious, I was joking around with friends and somewhat drunk when I wrote it, and many weeks later it's still chugging away ;)
I'm curious how many followers it'll get.
just one of many pointless bots I've written..
1
u/digdan Feb 22 '13
Would I be too obtuse to ask for the source, or should I try a different angle?
2
u/ShitNiggersSay Feb 22 '13
If you're new to the Twitter API / Python, try out the tweepy library; it's where I got started: https://github.com/tweepy/tweepy
0
Feb 22 '13
[deleted]
5
Feb 22 '13
I didn't expect paragraphs. At the very least, I expected complete sentences.
1
u/werdest Feb 22 '13
I used to have it set for full sentences, but most of the sentences in that book are too long to tweet, so I relaxed that constraint. After reading this comment I added it back again.
1
Feb 22 '13
In that case may I suggest complete sentences who's length are less than or equal to MAX_TWEET_LENGTH?
1
Feb 23 '13 edited Feb 23 '13
Just re-read this. You seem to already have that concept under grasp. In which case I would suggest using multiple sources at once.
0
Feb 22 '13
[deleted]
0
Feb 22 '13
Is it? How so?
0
Feb 22 '13
[deleted]
1
u/magusxion Feb 22 '13
In a randomized order.
Try making sense of it when you have no good idea of the context each text block belongs to.
0
Feb 22 '13
[deleted]
5
u/werdest Feb 22 '13
I just learned python, I wanted to try making something. Sorry for wasting your time.
10
u/dAnjou Backend Developer | danjou.dev Feb 22 '13
It's just reading a file and doing an API call. What's the big deal?