create a script called process.py, process accepts one parameter –site, which is a site key like in SITE_CONFIG in script.py. since process.py and script.py both use the SITE_CONFIG object let’s move it into our current config.py. then in process.py we are going to select all posts with less than 3 tags and then use script.py to trigger the tag on that post id. process is a syncronous process so wait for the tagging to complete before going to the next post with a 2 second pause between each script.py tag execution
by
Tags:
Leave a Reply