alexshelto / reddit_video_maker

This project will find popular Reddit threads and convert them into a text-to-speech videos.
GNU General Public License v3.0
74 stars 13 forks source link

AttributeError: module 'config' has no attribute 'PRAW_CONFIG' #6

Closed RealStJimmy closed 3 years ago

RealStJimmy commented 3 years ago

I'm really confused on what the config.py file is supposed to look like. Can you give an example one?

alexshelto commented 3 years ago

Will update repo with a demo config file and add to README. Example config file: located in src/ directory goes as shown:

PRAW_CONFIG = {
    'client_id': '',
    'client_secret': '',
    'user_agent': 'user-agent'
    }

the user agent can be the same as thats the default, see: https://www.reddit.com/prefs/apps and https://www.jcchouinard.com/get-reddit-api-credentials-with-praw/ for help creating a Praw 'app' and acquiring credentials.

Let me know if this helps :)

alexshelto commented 3 years ago

I have updated the repo with an example PRAW_CONFIG object and file. Closing issue.