GMU:Bots 'n' Plots/Oliver Hannemann: Difference between revisions

From Medien Wiki
Line 45: Line 45:


This is a very basic text bot, that works down a text file. I was trying to make a scrape and poste bot like ''[http://joaquinlp.me/blog/simple-twitter-image-bot-in-python/ this one]'' but I got stuck at
This is a very basic text bot, that works down a text file. I was trying to make a scrape and poste bot like ''[http://joaquinlp.me/blog/simple-twitter-image-bot-in-python/ this one]'' but I got stuck at
<pre>
    image_open = images[random.randint(0, len(images))-1]
IndexError: list index out of range
</pre>


__________
__________