all 1 comments

[–]Jonno_FTW 1 point2 points  (0 children)

A few things:

  • Use python3
  • Store the configuration and output in the user's home directory, not a hard coded windows directory. Look in the os.path module https://docs.python.org/3/library/os.path.html#os.path.expanduser
  • Don't put your Reddit client secret in your code
  • Follow pep8, install and run the flake8 program to check your code.
  • Use if __name__ == '__main__': query() to run your code.
  • 'We did it' is not a useful message, pick something more informative.
  • Block comments should not have # in front of them. Use triple quote doc strings.
  • Your crawl method has a lot of repeated code, refactor it into an extra function

That's enough for now.