kone
소미소프트

소미소프트

RJ코드 추출해서 클릭하면 바로 이동되는 파이썬 코드

04/15/2026, 11:55:25
유틸
8716 views · 4 likes

방주 올라오는 거 하나씩 입력하기 귀찮아서 만든 코드

필요 프로그램: 파이썬

필요 브라우저: 크롬


1

파일 실행



1

링크가 추출된 사진

저기서 클릭하면 바로 dlsite나 getchu, steam으로 넘어감


import tkinter as tk
from tkinter import scrolledtext, messagebox
import re
import webbrowser

class MultiLinkGenerator:
def __init__(self, root):
self.root = root
self.root.title("링크 생성기")
self.root.geometry("850x700")

self.custom_font = ("Gmarket Sans TTF Medium", 16)

self.label = tk.Label(root, text="코드 입력:", font=self.custom_font)
self.label.pack(pady=15)

self.input_area = scrolledtext.ScrolledText(root, height=8, width=60, font=self.custom_font)
self.input_area.pack(pady=5, padx=20)

self.btn_convert = tk.Button(root, text="모든 링크 추출 및 생성", command=self.extract_and_generate,
bg="#28a745", fg="white", font=self.custom_font, padx=20)
self.btn_convert.pack(pady=15)

self.result_frame = tk.Frame(root)
self.result_frame.pack(fill="both", expand=True, padx=20, pady=10)

self.scrollbar = tk.Scrollbar(self.result_frame)
self.scrollbar.pack(side="right", fill="y")

self.listbox = tk.Listbox(self.result_frame, yscrollcommand=self.scrollbar.set, font=self.custom_font, width=60)
self.listbox.pack(side="left", fill="both", expand=True)
self.scrollbar.config(command=self.listbox.yview)

self.listbox.bind('', self.open_browser)

self.status = tk.Label(root, text="somisoft.", bd=1, relief=tk.SUNKEN, anchor=tk.W, font=("Gmarket Sans TTF Medium", 16))
self.status.pack(side=tk.BOTTOM, fill=tk.X)

def extract_and_generate(self):
raw_text = self.input_area.get("1.0", tk.END)
codes = sorted(list(set(re.findall(r'(RJ\d+|ST\d+|GC\d+)', raw_text))))

self.listbox.delete(0, tk.END)

if not codes:
messagebox.showinfo("알림", "코드 미발견")
return

for code in codes:
prefix = code[:2]
num = code[2:]

if prefix == "RJ":
url = f"https://www.dlsite.com/maniax/work/=/product_id/{code}.html"
elif prefix == "ST":
url = f"https://store.steampowered.com/app/{num}"
elif prefix == "GC":
url = f"https://www.getchu.com/sp/soft.phtml?id={num}"
else:
continue

self.listbox.insert(tk.END, f"[{prefix}] {url}")

self.status.config(text=f"총 {len(codes)}개의 링크 생성 완료.")

def open_browser(self, event):
selection = self.listbox.curselection()
if selection:
full_text = self.listbox.get(selection[0])
url = full_text.split("] ")[1] if "] " in full_text else full_text
self.status.config(text=f"🌐 브라우저 이동: {url}", fg="green")
webbrowser.open(url)

if __name__ == "__main__":
root = tk.Tk()
app = MultiLinkGenerator(root)
root.mainloop()


코드 복사해서 메모장으로 붙여넣기 후 py 파일로 저장

4
1 comment
[업뎃] base64 자동복호화. 글제목(작가 이름)도 지원. CJK문자 지원
유틸
arcjay
05/29/25 5957 14
update0529_ DL + STEAM (태그|평점|이미지) 미리보기 크롬 확장.
유틸
ddegul
05/29/25 4200 11
개념글/전체글 버튼 분리 스크립트(수정)
유틸
딸기맛농축함유🍓
05/27/25 2800 3
전체글 버튼을 만들어주세요
유틸
글쓴이
05/27/25 3225 6
[업뎃] Auto 소미 XSS보안 업데이트
유틸
김머시기
05/27/25 11283 52
후타)후타나리들과 뷰릇뷰릇 착정던전 노모패치
유틸
레가토
05/26/25 5501 5
코네 미리보기 / 갤러리 뷰
유틸
mowajelly
05/25/25 8381 23
[업뎃] 자동 복호화/DL미리보기/자동국룰/자동다운 통합 스크립트 Auto 소미
유틸
김머시기
05/24/25 17472 44
20250527update_ STEAM, DL 이미지+태그(tag) 미리보기 크롬확장
유틸
ddegul
05/24/25 4013 9
Starbound 통팩 V0.2 (Sexbound, 스타바운드)
유틸
파에톤1호팬
05/24/25 5625 12
다키스트 던전 Lustiest Lair 1.6 메가-커스텀 팩
유틸
파에톤1호팬
05/24/25 10419 15
base64 자동복호화 (자동/수동모드 전환 가능)
유틸
arcjay
05/24/25 18871 79
Lossless Scaling 오리 꿱꿱
유틸
otona
05/24/25 4142 9
루나트랜스 ai번역 프롬프트 (탈옥+번역개선)_06.10업뎃
유틸
GOLAL
05/23/25 10068 16
링크 프리뷰 내맘대로 업데이트
유틸
cloud67p
05/23/25 2526 3
업데이트!) Base64 변환기 2.0 [확장 프로그램]
유틸
꼬께
05/23/25 8957 42
Base64 변환기 [확장 프로그램]
유틸
꼬께
05/23/25 6253 4
자동 국룰입력/복호화/다운로드 확장프로그램 스크립_귀인 분 코드 긴급 패치_이거 말고 원본 쓰쎔
유틸
noname911
05/22/25 13009 16
kone 이미지 일괄 다운로드
유틸
글쓴이
05/21/25 17490 37
이미지 뷰어(좀 더 편하게 볼 수 있는 그거) - 유기
유틸
noname911
05/20/25 7102 13
후타)착정생물에게 절대 패배하지 않는 거근거유 후타나리 메스가키 노모패치 v2
유틸
레가토
05/20/25 9057 14
ExFa viewer
유틸
글쓴이
05/19/25 4679 7
단축키 -펑-
유틸
유령
05/19/25 3910 11
썸네일 미리보기 다크모드, 댓글창 개선 스크립트
유틸
김머시기
05/18/25 16280 32
자동 국룰입력/복호화/다운로드 확장프로그램 스크립트
유틸
김머시기
05/18/25 61732 174
[유틸/수정1] 히토미 다운로더 스크립트 with 코네
유틸
kts
05/17/25 12994 30