Skip to content

Commit 5c10186

Browse files
committed
categorization
1 parent d4f5e88 commit 5c10186

File tree

2 files changed

+76
-13
lines changed

2 files changed

+76
-13
lines changed

find_tags.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import sys
2+
import pyperclip
3+
4+
def read_tags_from_clipboard():
5+
# Get tags from clipboard and convert to a set for faster lookup
6+
clipboard_content = pyperclip.paste()
7+
return set(tag.strip() for tag in clipboard_content.split(','))
8+
9+
def check_file_for_tags(filepath, tags_to_find):
10+
try:
11+
with open(filepath, 'r', encoding='utf-8') as file:
12+
found_tags = set()
13+
14+
# Read the file line by line
15+
for line in file:
16+
# Extract the tag from the line (everything after the closing bracket)
17+
if ']' in line:
18+
tag = line.split(']')[1].strip()
19+
if tag in tags_to_find:
20+
found_tags.add(tag)
21+
22+
# Print results
23+
if found_tags:
24+
print(f"\nFound {len(found_tags)} matching tags:")
25+
print(', '.join(sorted(found_tags)))
26+
else:
27+
print("\nNo matching tags found.")
28+
29+
# Print tags that weren't found
30+
missing_tags = tags_to_find - found_tags
31+
if missing_tags:
32+
print(f"\nTags from clipboard not found in file ({len(missing_tags)}):")
33+
print(', '.join(sorted(missing_tags)))
34+
35+
except FileNotFoundError:
36+
print(f"Error: Could not find file '{filepath}'")
37+
except Exception as e:
38+
print(f"Error: {str(e)}")
39+
40+
def main():
41+
# Check if a file was dragged onto the script
42+
if len(sys.argv) != 2:
43+
print("Please drag a file onto this script to check it for tags.")
44+
input("Press Enter to exit...")
45+
return
46+
47+
# Get the file path from command line arguments
48+
filepath = sys.argv[1]
49+
50+
# Get tags from clipboard
51+
tags_to_find = read_tags_from_clipboard()
52+
53+
if not tags_to_find:
54+
print("No tags found in clipboard. Please copy tags to clipboard first.")
55+
input("Press Enter to exit...")
56+
return
57+
58+
# Process the file
59+
check_file_for_tags(filepath, tags_to_find)
60+
input("\nPress Enter to exit...")
61+
62+
if __name__ == "__main__":
63+
main()

lists/categorized_tags.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,7 +2541,7 @@
25412541
[clothes_and_accessories] unworn_panties
25422542
[actions] fox_shadow_puppet
25432543
[color_scheme] green_theme
2544-
[female_intimate_anatomy] navel_hair
2544+
[standard_physical_descriptors] navel_hair
25452545
[clothes_and_accessories] heart_print
25462546
[clothes_and_accessories] print_dress
25472547
[clothes_and_accessories] chest_sarashi
@@ -5605,7 +5605,7 @@
56055605
[clothes_and_accessories] full-length_zipper
56065606
[background_objects] eagle
56075607
[clothes_and_accessories] star_sticker
5608-
[female_intimate_anatomy] pussy_piercing
5608+
[female_physical_descriptors] pussy_piercing
56095609
[standard_physical_descriptors] jaguar_ears
56105610
[physical_locations] in-universe_location
56115611
[standard_physical_descriptors] red_hands
@@ -5625,7 +5625,7 @@
56255625
[clothes_and_accessories] happi
56265626
[standard_physical_descriptors] messy
56275627
[background_objects] takoyaki
5628-
[female_intimate_anatomy] blonde_pubic_hair
5628+
[female_physical_descriptors] blonde_pubic_hair
56295629
[metadata_and_attribution] group_name
56305630
[metadata_and_attribution] art_tools_in_frame
56315631
[standard_physical_descriptors] asian
@@ -5967,7 +5967,7 @@
59675967
[poses] riding_pokemon
59685968
[holding_small_items] holding_notebook
59695969
[female_physical_descriptors] braided_sidelock
5970-
[female_intimate_anatomy] anal_hair
5970+
[female_physical_descriptors] anal_hair
59715971
[actions] belly_grab
59725972
[metadata_and_attribution] commissioner_name
59735973
[background_objects] makizushi
@@ -6225,7 +6225,7 @@
62256225
[female_physical_descriptors] pear_shaped_figure
62266226
[clothes_and_accessories] red_robe
62276227
[clothes_and_accessories] crystal_earrings
6228-
[female_intimate_anatomy] long_labia
6228+
[female_physical_descriptors] long_labia
62296229
[clothes_and_accessories] single_epaulette
62306230
[clothes_and_accessories] blue_sports_bra
62316231
[background_objects] napkin
@@ -7211,7 +7211,7 @@
72117211
[standard_physical_descriptors] dog_penis
72127212
[background_objects] wood
72137213
[clothes_and_accessories] single_knee_pad
7214-
[female_intimate_anatomy] erect_clitoris
7214+
[female_physical_descriptors] erect_clitoris
72157215
[clothes_and_accessories] pink_slippers
72167216
[female_physical_descriptors] reptile_girl
72177217
[poses] on_railing
@@ -8796,7 +8796,7 @@
87968796
[actions] thumbs_down
87978797
[two_handed_character_items] yumi_(bow)
87988798
[poses] person_on_head
8799-
[female_intimate_anatomy] mole_on_pussy
8799+
[female_physical_descriptors] mole_on_pussy
88008800
[sex_acts] immobilization
88018801
[clothes_and_accessories] compression_shirt
88028802
[metadata_and_attribution] country_connection
@@ -9006,7 +9006,7 @@
90069006
[female_physical_descriptors] motoyui
90079007
[clothes_and_accessories] stahlhelm
90089008
[background_objects] soy_sauce
9009-
[female_intimate_anatomy] dark_labia
9009+
[female_physical_descriptors] dark_labia
90109010
[background_objects] tofu
90119011
[two_handed_character_items] mosin-nagant
90129012
[standard_physical_descriptors] lipstick_mark_on_face
@@ -16674,7 +16674,7 @@
1667416674
[physical_locations] igloo
1667516675
[thematic_settings] crystallization
1667616676
[actions] making_faces
16677-
[female_intimate_anatomy] blue_pussy
16677+
[female_physical_descriptors] blue_pussy
1667816678
[actions] all-out_attack
1667916679
[format_and_presentation] shikairo_days_dance_(meme)
1668016680
[clothes_and_accessories] striped_wrist_cuffs
@@ -17233,7 +17233,7 @@
1723317233
[clothes_and_accessories] indonesian_clothes
1723417234
[actions] rapping
1723517235
[clothes_and_accessories] pink_hanfu
17236-
[female_intimate_anatomy] huge_clitoris
17236+
[female_physical_descriptors] huge_clitoris
1723717237
[metadata_and_attribution] kurokw_(style)
1723817238
[background_objects] ambulance
1723917239
[clothes_and_accessories] raver
@@ -19823,7 +19823,7 @@
1982319823
[background_objects] calavera
1982419824
[metadata_and_attribution] no_image
1982519825
[two_handed_character_items] steyr_iws_2000
19826-
[female_intimate_anatomy] colored_anus
19826+
[standard_physical_descriptors] colored_anus
1982719827
[female_physical_descriptors] very_low_bun
1982819828
[background_objects] three-wheeler
1982919829
[clothes_and_accessories] tennis_dress
@@ -19850,7 +19850,7 @@
1985019850
[two_handed_character_items] bagpipes
1985119851
[actions] petal_in_mouth
1985219852
[standard_physical_descriptors] petal_on_head
19853-
[female_intimate_anatomy] grey_nipples
19853+
[female_physical_descriptors] grey_nipples
1985419854
[clothes_and_accessories] ashford_academy_swimsuit
1985519855
[clothes_and_accessories] lagombi_(armor)
1985619856
[one_handed_character_items] radio_controller
@@ -19899,7 +19899,7 @@
1989919899
[physical_locations] atlantis_(fate/grand_order)
1990019900
[background_objects] birdhouse
1990119901
[metadata_and_attribution] kafuu_chino_(cosplay)
19902-
[female_intimate_anatomy] glowing_nipples
19902+
[female_physical_descriptors] glowing_nipples
1990319903
[expressions_and_mental_state] tasukete_eirin
1990419904
[metadata_and_attribution] shaolin_monk
1990519905
[metadata_and_attribution] okita_souji_(koha-ace)_(cosplay)

0 commit comments

Comments
 (0)