You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>)
Currently, all fresh_script users have the same user-agent, defined by the createPrawConfig function:
The createPrawConfig function creates a site_name called 'bot1' in a local praw.ini file. This site_name is then used to create a praw.Reddit instance within main:
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 text was updated successfully, but these errors were encountered:
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:fresh_script/fresh.py
Lines 56 to 60 in 29a482a
The
createPrawConfig
function creates asite_name
called'bot1'
in a localpraw.ini
file. Thissite_name
is then used to create apraw.Reddit
instance withinmain
:fresh_script/fresh.py
Line 377 in 29a482a
One 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).
The text was updated successfully, but these errors were encountered: