Closed austkel closed 9 years ago
The main folder for the TwitterFollowBot is in my C drive.
You'll need to pass a string to the constructor with a path pointing to the config file, e.g., 'C:/TwitterFollowBot/config.txt'
By default, the script looks for a config.txt in the current directory you're running the script in.
Not entirely sure how to do what you described. Here's where my config.txt is...
Change the line in your code to:
my_bot = TwitterBot('C:/TwitterFollowBot-master/config.txt')
Ok, I've now received this error. However, I've entered the details necessary. I tried it once before with including line breaks but that seemed to have caused an error. So now it's one long continuous string but the data is in the config.txt.
Thanks for your quick replies btw
See here for how to fill out the config.txt: https://github.com/rhiever/TwitterFollowBot#configuring-the-bot
On Thu, Jul 23, 2015 at 4:52 PM, austkel notifications@github.com wrote:
Ok, I've now received this error. However, I've entered the details necessary. I tried it once before with including line breaks but that seemed to have caused an error. So now it's one long continuous string but the data is in the config.txt.
[image: image] https://cloud.githubusercontent.com/assets/13457575/8861923/c391e924-3152-11e5-8252-649d770d78b0.png
— Reply to this email directly or view it on GitHub https://github.com/rhiever/TwitterFollowBot/issues/60#issuecomment-124237047 .
Randal S. Olson, Ph.D. Postdoctoral Researcher, Institute for Biomedical Informatics University of Pennsylvania
E-mail: rso@randalolson.com | Twitter: @randal_olson https://twitter.com/randal_olson http://www.randalolson.com
I think I entered it properly, but then I get this message like I got previously...
Is there an empty line at the end of config.txt?
On Thu, Jul 23, 2015 at 5:05 PM, austkel notifications@github.com wrote:
I think I entered it properly, but then I get this message like I got previously...
[image: screen] https://cloud.githubusercontent.com/assets/13457575/8862235/a006178a-3154-11e5-8712-c394b12594d0.jpg
[image: image] https://cloud.githubusercontent.com/assets/13457575/8862247/b36e75f6-3154-11e5-90dd-96187cfbfa2d.png
— Reply to this email directly or view it on GitHub https://github.com/rhiever/TwitterFollowBot/issues/60#issuecomment-124240360 .
Randal S. Olson, Ph.D. Postdoctoral Researcher, Institute for Biomedical Informatics University of Pennsylvania
E-mail: rso@randalolson.com | Twitter: @randal_olson https://twitter.com/randal_olson http://www.randalolson.com
No
Well, here's what's happening:
The script is trying to parse your config.txt file.
It's reaching a line in the file that it thinks it should parse and trying to split on the :
token.
This line that it's parsing must not have a :
in it because when it tries to grab the first item after the :
, it reaches an index out of range error.
So there's something weird going on with the config.txt
you're passing it.
I have the same issue!
Revisted this program lately. I found that my issue was using Notepad. Try using something like Notepad++, paste in your config, you'll see all the weirdness. Fix it, paste it back in, boom.
Getting the following error...
I've edited my config file. It's in the same directory it came in. Any idea what I might be doing wrong?