So I got the script written and executed! Thank you again for your help.
I split the usernames from the tags, then passed the usernames individually as generics to RAT (I will clean up later and assign them correctly to right sites in the rat file) and the tags individually to the tags. I also added a step to rename the folder to strip the tags from it before passing the usernames and tags into RAT so that the rat file and the directories were more clean.
I did notice an oversite with my script though, as there were a couple folders which didn't have the same naming convention/format at the rest of them, and actually had a '(' before the tags. But I took a backup of the directory names before running, so I don't mind a little manual clean up.
One thing I've noticed after running this is that RAT doesn't seem to like UTF-8 characters. So models with non-english characters in the usersnames (e.g. ø, ö, 呆, etc, etc). It replaces the actual character with the unicode number, for example 'ø' becomes '\u00f8' inside the rat file.
So it took me all day to write 70 lines of code, most of which are comments or empty lol. Though I'm not to disheartened by that, as this is literally my first python script I've written outside of basic beginner follow along learning videos.
If you interested, here is what I came up with:
Then ran it via:
I split the usernames from the tags, then passed the usernames individually as generics to RAT (I will clean up later and assign them correctly to right sites in the rat file) and the tags individually to the tags. I also added a step to rename the folder to strip the tags from it before passing the usernames and tags into RAT so that the rat file and the directories were more clean.
I did notice an oversite with my script though, as there were a couple folders which didn't have the same naming convention/format at the rest of them, and actually had a '(' before the tags. But I took a backup of the directory names before running, so I don't mind a little manual clean up.
One thing I've noticed after running this is that RAT doesn't seem to like UTF-8 characters. So models with non-english characters in the usersnames (e.g. ø, ö, 呆, etc, etc). It replaces the actual character with the unicode number, for example 'ø' becomes '\u00f8' inside the rat file.
So it took me all day to write 70 lines of code, most of which are comments or empty lol. Though I'm not to disheartened by that, as this is literally my first python script I've written outside of basic beginner follow along learning videos.
If you interested, here is what I came up with:
Then ran it via:
Last edited: