Closed WAUthethird closed 4 years ago
Hi, the bot.py file is meant to contain your reddit credentials. There is a part of the main readme that says this:
https://github.com/voussoir/timesearch#make-sure-you-have
- Downloaded a copy of this file and saved it as
bot.py
. Fill out the variables using your OAuth information, and read the instructions to see where to put it. The Useragent is a description of your API usage. Typically "/u/username's praw client" is sufficient.
You can name it bot.py
or bot4.py
according to this logic.
The instructions inside bot.py describe the use of the PYTHONPATH
env variable, but since you're using anaconda you may have to find a more specific directory to provide libs to your env. As always, placing the file in the same place as builtin modules like os
or sys
is guaranteed to work in a pinch.
Seems to work, I actually deleted that file when upgrading to latest source, because I thought it was extraneous and unnecessary due to it utilizing timesearch. Too bad I didn't remember that it uses Reddit to check for the most up-to-date posts and comments.
Wasn't too hard to add back, though. Thanks!
When trying to use timesearch on latest source and up-to-date pip packages, I get the error in the title:
Any way to fix this? I'm using Anaconda for env management.