You're viewing a comment by awh and its responses.

awh Permalink
July 29, 2008, 04:11

Hey, nice script! I have one concern, though. When looking at "pyredditstories.py", I noticed that you set the user-agent as this:

request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)')

First, I don't really see the use in this, why would it matter to reddit what your user-agent is? Second, I find that it's much more honest to use a useful user-agent. It lets a website/server owner contact you if they are having huge problems with your app, and there might be a design flaw.

Just thought I'd give a heads up!

Comment Responses

patrick jury Permalink
November 18, 2012, 15:57

The reddit api requires you to specify a user-agent to build the client object.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "sandbox": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.