Tkinter Reddit scraper (Tkinter and Praw) returns error "TypeError" Tkinter Reddit scraper (Tkinter and Praw) returns error "TypeError" tkinter tkinter

Tkinter Reddit scraper (Tkinter and Praw) returns error "TypeError"


I think the issue here is that you're attempting to get the value in Entry self.e before you call app.mainloop().

In self.actualFrame() you call self.search(), which makes this call:

posts = r.get_subreddit(self.e.get()).get_hot(limit = 10)

Before you attempt to call self.e.get() you must start the mainloop of the GUI.

I'm not completely clear on the structure of your code, but if you are trying to retrieve a value from self.e, wait to call self.search() until after you call app.mainloop()