The following examples require that the PRAW configuration file is located in the config directory. The easiest way to automate this tool after the first run is by using the cron utility. To use more than one account, you can add multiple profiles instead of just and use the -u option to ~/.config in Linux or %APPDATA% in Windows. Keep your praw.ini either in the current directory when running shreddit, or in one of the config folders Copy the 27 character "secret" string into the client_secret field.įinally, your praw.ini should look like this (with fake data provided here): client_id=f3FaKeD4t40PsJĬlient_secret=dfK3pfMoReFAkEDaTa123456789.Once created, you should see the name of your application followed by 14 character string.Redirect URL does not matter for script applications, so enter something like.It doesn't matter what it's named, but calling it "shreddit" makes it easier to remember. Open your Reddit application preferences by clicking here.However, to obtain theĬlient ID and secret, follow these steps (taken from Username and password are simply your Reddit login credentials for the account that will be used. As strange as it may seem to provide both a username/password pair andĪ client id/secret pair, that is how the Reddit API does "OAuth" script applications. You must provide values for each of these. Fill out default, or provide one or more names and call shreddit with the -u option to specify # which set to use. Running shreddit -g will generate a blank praw.ini file that looks like this: # Credentials go here. After configuring credentials, running the tool with the shredditĬommand will begin the tool's operation. Simply typing shreddit -g will generate configs. This is typicallyĮither run in a virtualenv or using administrative privileges for global installation.Īfter installing the shreddit command line utility, the first step is setting up the tool's configuration files. Run python setup.py install to install the package and the shreddit command line utility.From the directory, run pip install -r requirements.txt.Clone the shreddit repository to a directory.This is typically either run in a virtualenv or using administrative privileges for global Pip install -U shreddit will install the package and its dependencies, and it will add a shreddit command line To ensure that you have set up credentials correctly. If you are upgrading, please review the usage section Thankfully, however, it is much easier than in previous versions. This requires that OAuth be used to authenticate. Important New Changes (as of Dec 2016)ĭue to deprecation of the PRAW 3.x library, Shreddit is using PRAW 4. In fact you can actually turn off deletion all together and just have lorem ipsum (or a messageĪbout Shreddit) but this will increase how long it takes the script to run as it will be going over all of your messagesĮvery run. When it became known that post edits were not saved but post deletions were saved, code was added to edit your post It allows you to maintain your normal reddit account while having your history Time until only those whitelisted remain. Reddit, and will systematically go through the user's history deleting one post/submission at a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |