unique and descriptive, including the target platform, a unique application identifier, a version string, and your username as contact information, in the following format:
<platform>:<app ID>:<version string> (by /u/<reddit username>)
A helper function to generate the user string would be useful. We would also need to store the user's reddit username in one of the configuration files (see #62).
The reddit API rules ask that the supplied user-agent string be
Currently, all
fresh_script
users have the same user-agent, defined by thecreatePrawConfig
function: https://github.com/amcquade/fresh_script/blob/29a482a14638531f2177aa58d98dd6ef1e6c4870/fresh.py#L56-L60The
createPrawConfig
function creates asite_name
called'bot1'
in a localpraw.ini
file. Thissite_name
is then used to create apraw.Reddit
instance withinmain
: https://github.com/amcquade/fresh_script/blob/29a482a14638531f2177aa58d98dd6ef1e6c4870/fresh.py#L377One solution would be to override the
user_agent
string when creating thepraw.Reddit
instance:A helper function to generate the user string would be useful. We would also need to store the user's reddit username in one of the configuration files (see #62).