path
Jin's Lab
코드로 실험하고 기록하는 개발 일지 · J.Lab

Jin's Lab

코드로 실험하고 기록하는 개발 일지. 커리어와 삶의 방향을 탐색하며 기록하는 공간입니다

GoogleAppsScript

Apps Script 다국어 자동화로 API 키 없이 핀터레스트 유입 늘리기

J.Lab ·
목차

    블로그 유입 채널을 다변화하기 위해 핀터레스트 자동화를 시작한 지 어느덧 몇 달이 지났다. 최근 유입 통계를 가만히 들여다보다가 꽤나 충격적인 사실을 발견했다. 내 핀터레스트 계정으로 유입되는 사용자 중 한국인 비율이 고작 1% 안팎에 불과했던 것이다. 나머지 99%의 글로벌 유저들을 그냥 흘려보내고 있었다는 생각에 가슴이 아려왔다.

    글로벌 유저들의 검색 노출을 잡으려면 무엇보다 핀 제목에 영어 키워드를 병기하는 것이 급선무였다. 하지만 이미 잘 돌아가고 있는 원본 블로그의 SEO 타이틀을 일일이 영어로 바꿀 수는 없는 노정이었다. 결국 내가 만들어 둔 Pinterest RSS 프록시 서버 역할을 하는 Apps Script 코드를 수정해, 핀터레스트로 나가는 RSS 피드만 실시간으로 다국어 가공을 거치기로 마음먹었다.

    구글 앱스 스크립트를 사용하여 한글 데이터를 영어로 번역하는 서버 구조의 아이소메트릭 일러스트

    LanguageApp.translate로 구현한 실시간 한영 병기

    우선 별도의 유료 번역 API 키를 발급받거나 복잡한 계약을 맺고 싶지 않았다. 다행히 구글 앱스 스크립트에는 내장 라이브러리인 LanguageApp.translate가 존재한다. 이를 활용해 기존 Pinterest_RSS중복제거.gs 파일의 피드 생성 로직을 손보기 시작했다. 채널 자체의 이름은 그대로 두고, 개별 피드 아이템의 제목인 <item><title> 영역만 실시간으로 '한글 원제 | 영문 번역' 형태로 조립되도록 코드를 짰다.

    다행히 핀터레스트의 '핀 일괄 만들기' 기능은 이미 발행된 핀은 중복해서 다시 생성하지 않는 똑똑한 특성을 가지고 있다. 덕분에 과거에 이미 생성해 둔 수많은 핀에 영향을 주지 않고, 앞으로 올릴 신규 게시물부터 자연스럽게 다국어 제목이 적용될 수 있었다. 혹시 모를 에러나 원복 상황에 대비해 주소 뒤에 &bilingual=0이라는 쿼리 파라미터를 붙이면 즉시 번역 기능이 꺼지고 원래 피드로 롤백되는 탈출 장치도 야무지게 마련해 두었다.

    RSS 피드가 통과하면서 다국어로 필터링되는 과정을 표현한 플랫 일러스트

    1차 난관: 본문 직역의 한계와 다국어 SEO 태그 재활용

    우선 구현을 마치고 가동해 보니 곧바로 첫 번째 문제가 터졌다. 제목 전체 문장을 LanguageApp.translate로 날것 그대로 직역했더니, 영어 번역 결과물이 지나치게 길어져 버렸다. 핀터레스트 모바일 화면이나 검색 결과 영역에서 실제로 노출되는 제목 길이는 보통 40자에서 60자 사이인데, 정작 중요한 영어 키워드 뒷부분이 뚝 끊겨버린 것이다. 직역된 영어 문장은 가독성도 떨어질뿐더러 정작 필요한 핵심 키워드를 살리지 못했다.

    고민 끝에 무식한 전체 문장 번역 대신, 각 포스팅에 이미 맵핑되어 있는 영문 카테고리 라벨을 재활용하는 방식으로 방향을 틀었다. 블로그에 미리 정의해 둔 메인 키워드와 관련 키워드 기반의 영어 라벨을 추출해 한글 제목 뒤에 덧붙여 주었다. 복잡한 문장을 억지로 번역하는 것보다, 이미 다듬어 놓은 명료한 다국어 SEO 태그를 매칭하는 것이 검색 노출과 가독성 측면 모두에서 훨씬 뛰어난 결과물을 보여주었다.

    텍스트 입력값이 60글자 한도에 맞춰 정밀하게 재단되는 모습을 시각화한 그래픽 일러스트

    2차 난관: 글자 수 초과 방지를 위한 '60자 예산제' 도입

    영어 라벨로 단어를 압축했음에도 두 번째 난관이 찾아왔다. 원본 한글 제목 자체가 20자를 훌쩍 넘는 경우가 많다 보니, 두 가지 언어를 합치면 여전히 핀터레스트 가이드라인인 60자 영역을 아슬아슬하게 넘나들었다. 다국어 병기 제목을 만들 때는 단순히 영어를 줄이는 것만으로는 부족하고, 두 언어의 비중을 유기적으로 조절해야 한다는 사실을 깨달았다. 그래서 한글과 영어를 합쳐 총 60자라는 엄격한 '글자 수 예산'을 설정하고, 이를 분배하는 알고리즘을 도입했다.

    이 시스템은 한글 제목과 영문 태그의 길이를 실시간으로 계산해 각각 정해진 비율만큼만 남기고 잘라낸다. 이때 단어 중간이 어설프게 잘리는 불상사를 막기 위해 띄어쓰기 같은 단어 경계면을 기준으로 텍스트를 자르고, 잘린 끝부분에는 말줄임표(…)를 붙여 완성도를 높였다. 물론 원본 블로그의 SEO 구조에는 아무런 영향을 주지 않고 오직 Pinterest RSS 프록시 출력 단계에서만 글자가 축약되어 전달되므로 블로그 자체 검색 노출에는 아무런 악영향이 없다.

    이번 삽질을 거치며 다국어 병기 자동화는 단순히 언어를 번역해 이어 붙이는 작업이 아님을 뼈저리게 배웠다. 제한된 노출 화면이라는 그릇 안에서 각 언어의 길이를 예산처럼 통합 관리하고 최적화해야만 진정한 다국어 SEO 효과를 볼 수 있다. 핀터레스트 글로벌 유입이 고민된다면, 외부 API 결제 없이 Apps Script로 가볍게 시작할 수 있는 이 최적화 방식을 강력히 추천한다.

    GoogleAppsScript MultilingualSEO PinterestAutomation RSSProxy TranslationAPI
    ← 이전 글
    최근 게시물
    다음 글 →
    이전 게시물
    ≡ 글 목록으로
    소개
    path
    J.Lab

    커리어와 삶의 방향을 탐색하며
    기록하는 공간입니다

    카테고리
    403 Forbidden Error 1 429 Error 1 Ad Exchange 1 Ad Layout Guide 1 ad-slot 1 adsense 2 AdSense 2 AdSense Bot Detection 1 AdSense CTR 1 AdSense Display Issue 1 adsense-optimization 1 AI Automation 1 AI Image Generation 1 ai-automation 2 ai-book-writing 1 ai-image-generation 1 AI-Prompting 1 ai-side-hustle 1 ai-workflow 1 ai-writing 1 AIAutomation 1 AIBlogAutomation 1 AICodeLog 1 AIContentGeneration 1 AIImageGeneration 1 AIWritingErrors 1 API Automation 2 API Retry Design 1 api-automation 1 API-Deprecation 1 api-error 1 api-fallback 1 api-integration 2 api-pagination 1 api-retry-strategy 1 api-troubleshooting 1 APIDebugging 1 APIError 1 APIErrorHandling 1 APIIntegration 3 APIQuotaOptimization 1 APITokenRenewal 1 apps-script-trigger 1 AppsScript 1 appsScriptAutomation 1 AutomatedBlogging 1 automation 5 Automation 4 Automation Queue 1 Automation Scheduler 1 Automation Troubleshooting 1 automation-error 1 automation-script 1 AutomationBug 1 AutomationTroubleshooting 1 Backoff Algorithm 1 Base64 Image 1 Base64Encoding 1 batch-processing 1 BatchProcessing 1 Blog Optimization 2 blog-automation 4 blog-customization 2 blog-migration 4 blog-monetization 1 Blog-Sorting 1 blog-strategy 1 blog-theme-customization 1 blog-workflow 1 blogautomation 1 BlogAutomation 4 Blogger 13 Blogger API 2 Blogger Automation 2 Blogger SEO 1 blogger-api 4 blogger-automation 1 blogger-customization 1 blogger-error-400 1 blogger-labels 1 blogger-seo 1 blogger-theme 1 blogger-theme-debug 1 blogger-tips 1 Blogger-Tips 1 blogger-xml 1 BloggerAPI 7 BloggerAutomation 1 BloggerBypath 1 BloggerCustomization 2 BloggerFavicon 1 BloggerPermalink 1 BloggerTemplate 1 BloggerTemplateEditing 1 BloggerTheme 3 BloggerThemeCustomization 1 BloggerXMLStructure 1 Blogging-Automation 1 BloggingTools 1 BlogQuality 1 BlogSpot 1 Bug Fix 1 bug-fix 1 bug-hunting 1 BWidgetBIncludable 1 card-overlay-css 1 CardClickHandler 1 career-advice 1 CDATA 1 checklist-template 1 clamping-text 1 Claude 1 claude-ai 3 claude-code 2 ClaudeChat 1 ClaudeCode 1 CLIPTokenLimit 1 CloudflareWorkersAI 1 CNAME 1 Code Cleanup 1 Code Integration 1 code-refactoring 1 codelog 1 CodeLog 1 codeRefactoring 1 CodeStack 1 coding-log 2 comment-classification 1 config-pattern 1 Content Strategy 1 Content-Marketing 1 content-monetization 1 content-strategy 1 content-writing 1 contentsequencing 1 ContentStrategy 1 context-management 1 cost-reduction 1 CSS 1 css-axis-rotation 1 css-bug-fix 1 CSS-Debugging 1 css-fix 1 css-flexbox 1 css-layout 3 css-logo 1 css-print 1 css-troubleshooting 1 CSSLayout 1 CSSOverlay 1 Custom Domain 1 custom-theme 1 data-backfill 1 data-parsing 1 data-synchronization 1 data-validation 1 DatabaseDesign 1 DataMigration 1 DataRecovery 1 DataValidation 1 DateInjection 1 debugging 2 Debugging 5 Debugging Log 1 DebuggingLog 1 derived-state 1 detail-page-design 1 dev-journey 2 dev-log 1 Developer-Blog 1 developer-career 1 DeveloperJourney 2 DevJourney 1 DevLog 1 digital-creator 1 digital-products 2 display-none-seo 1 DOM-Inspection 1 dom-manipulation 1 Domain Migration 1 DomainMigration 1 DOMAutomation 1 duplicate-content 1 dynamic-menu 1 ebook-marketing 2 ebook-planning 1 ebook-publishing 5 editing-tips 1 Error Handling 2 error-handling 1 Error-Handling 1 ErrorHandling 2 EventDispatch 1 Execution Timeout 1 ExecutionLimit 1 exponential-backoff 1 FactChecking 1 FallbackSystem 1 FaviconEmbedding 1 Feed-API 1 filesystem 1 Flat Illustration 1 flux-model 1 FluxModel 1 FreeAIImage 1 frontend 1 Frontend 1 frontend-developer 1 frontend-layout 1 frontend-tips 1 FrontEndDev 1 FrontendTips 1 GAS 1 GAS Blogger API 1 GAS Refactoring 1 GAS Trigger 1 gas-automation 2 gas-optimization 1 gas-trigger 1 GASTimeout 1 gasTriggerManagement 1 GCP Project Linkage 1 Gemini 1 Gemini API 2 gemini-api 1 GeminiAPI 3 GeminiPrompt 1 GeminiPromptEngineering 1 getBoundingClientRect 1 github-raw-url 1 GmailRestrictions 1 Google AdSense 1 Google Apps Script 12 Google Discover 1 google-apps-script 8 Google-Apps-Script 1 google-blogger 1 googleAppsScript 1 GoogleAppsScript 12 googlesapps-script 1 GoogleSearchConsole 1 grep 1 hero-image 1 hero-image-validation 1 HTML Fix 1 HTMLCSS 1 HTMLWidgetBlogger 1 http-429 1 HuggingFace 1 HuggingFaceAPI 1 ico-generator 1 Image Optimization 1 image-automation 2 image-generation 1 image-hosting 1 image-optimization 1 image-processing 1 image-upload 1 ImageGeneration 2 ImageIntegrity 1 ImageOptimization 1 In-App Browser 1 invalid-argument 1 javascript 4 JavaScript 4 javascript-automation 1 javascript-toc 1 JavaScriptDevLog 1 JavaScriptInjection 1 jlab-codelog 1 JLabDevLog 1 json-schema 1 label-length-limit 1 lead-magnet 1 legacy-code 1 LinkedIn-API 2 LinkedIn-OAuth 1 LinkHub 1 linux 1 markdown 1 meta-description 1 MetaTags 1 Migration 1 Migration Script 1 mobile-friendly 1 Mobile-Web 1 monetization 1 Monitoring Automation 1 MultilingualSEO 1 NakedDomain 1 Negative Prompt 1 node-js 1 nodejs-automation 1 noindex-tag 1 Notion API 1 notion-api 3 notion-database 2 notion-gas-integration 1 notion-setup 1 notion-template 1 NotionAPI 3 NotionAutomation 1 notionintegration 1 NotionIntegration 1 OAuth Scope 1 OpenGraph 1 padding-overlap 1 pagination 1 payload-validation 1 pdf-generation 1 pdf-publishing 1 pdf-selling 1 permalink-management 1 PersonaDesign 1 pil-image-processing 1 Pinterest 2 PinterestAutomation 1 PipelineFix 1 playwright 1 Pollinations 1 Pollinations Flux 1 pollinations-ai 1 pollinations-api 2 PollinationsAI 1 PositionAbsolute 1 post-queue 1 productivity-tools 1 Prompt Design 1 Prompt Engineering 1 prompt-engineering 3 Prompt-Engineering 1 prompt-validation 1 PromptEngineering 3 Publishing Flow 1 publishorder 1 python-favicon 1 python-markdown 1 python-pil 2 python-scripting 1 Queue Design 1 queue-pattern 1 queue-stuck 1 RandomDelay 1 rate-limiting 1 react 1 React 1 Refactoring 1 Resource Exhausted 1 responsive-ads 1 responsive-design 4 ResponsiveCSS 1 ResponsiveDesign 1 retrospective 1 rfc3339 2 Robots Meta Tag 1 RSS Feed 1 rss-feed 1 RSSProxy 2 SAXParseException 1 Script Authorization 1 scriptNotFound 1 SDXL 1 Search Engine Optimization 2 Search-Engine-Optimization 1 SearchConsole 1 Self Rescheduling Trigger 1 SEO 2 SEO Tips 1 seo-optimization 5 SEO-Optimization 1 SEOOptimization 2 seriesmanagement 1 serverless-automation 1 sessionstart-hook 1 shell-script 1 Side Ad Duplication 1 side-income 1 side-project 1 SidebarLinks 1 SNSMarketing 1 Social-Media-Automation 2 SocialSharing 1 state-management 1 StaticWebPage 1 sub-agent 1 SVG Icon 1 svg-mask 1 SVGIcon 1 Synchronization 1 table-of-contents 1 tech-blogging 1 TechJournal 1 TechVibe 1 Template 1 TextSanitization 1 threads-api 2 Threads-API-Comparison 1 ThreadsAPI 3 time-driven-trigger 1 Tistory 2 tistory-customization 1 tistory-migration 1 tistory-skin 1 tistory-theming 1 tistory-tips 1 TOC Ad Placement 1 token-optimization 1 TranslationAPI 1 transparent-favicon 1 triggerCleanup 1 troubleshooting 2 Troubleshooting 2 typesetting 1 ui-optimization 1 unzip 1 URL Slug 1 UrlFetchApp 1 usememo 1 UTF8Encoding 1 vanilla-js 1 Web Development 2 Web Publishing 2 Web Security 1 web-development 7 Web-Development 2 web-development-log 1 web-development-tips 1 web-layout 1 Web-Layout 1 web-performance 1 web-publisher 1 web-scraping 1 WebAccessibility 1 WebAutomation 1 WebDebugging 1 WebDesign 2 WebDevelopment 10 WebDevelopmentTips 1 WebDevJourney 1 WebMigration 1 windows 1 windows-task-scheduler 2 WorkAutomation 1 workflow-automation 1 WorkflowAutomation 1 writing-process 1 XHTML 1 XMLCustomization 1 XMLParser 1 XMLSpecialCharacters 1 XMLTheme 1 z-index-issue 1 zip 1
    인기 글
    GAS에서 Blogger API 403 오류 완전 정복 — appsscript.json 스코프와 GCP 프로젝트 연결
    GAS에서 Blogger API 403 오류 완전 정복 — appsscript.json 스코프와 GCP 프로젝트 연결
    GAS 트리거 방치했다가 오류 폭탄 맞은 이야기 — 함수명 바꿀 때 트리거도 꼭 같이 정리하세요
    GAS 트리거 방치했다가 오류 폭탄 맞은 이야기 — 함수명 바꿀 때 트리거도 꼭 같이 정리하세요
    Notion API page_size 함정 — 우선순위 항목이 조회에서 빠지는 이유와 해결법
    Notion API page_size 함정 — 우선순위 항목이 조회에서 빠지는 이유와 해결법
    다른 블로그
    IssueLog
    IssueLog
    issuelog.jinbytes.com
    KidStory
    KidStory
    kidstory.jinbytes.com
    IT Story
    IT Story
    jinbytes.com
    이야기하는 밤
    이야기하는 밤
    story.jinbytes.com
    [eBook] 개발자로 살아간다는 것
    [eBook] 개발자로 살아간다는 것
    유료 전자책
    [eBook] FE 실무 디테일
    [eBook] FE 실무 디테일
    유료 전자책
    [미니북] FE 실무 디테일
    [미니북] FE 실무 디테일
    무료 미니북
    © Jin's Lab · J.Lab · All Rights Reserved
    jinbytes.com · Powered by Blogger