πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
DemoInstallSign in
Socket

tistory-indexer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tistory-indexer

Submit and check indexing status of Tistory blog posts via Google's Indexing API

0.1.3
Source
PyPI
Maintainers
1

tistory-indexer

PyPI Python

ν‹°μŠ€ν† λ¦¬(Tistory) λΈ”λ‘œκ·Έ 글을 μžλ™μœΌλ‘œ Google Search Console (GSC)에 색인 μš”μ²­ν•˜λŠ” 파이썬 λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€.

βœ… λΈ”λ‘œκ·Έκ°€ GSC에 λ“±λ‘λ˜μ–΄ μžˆμ–΄μ•Ό ν•˜λ©°, OAuth 인증이 ν•„μš”ν•©λ‹ˆλ‹€.

πŸš€ μ£Όμš” κΈ°λŠ₯

  • ν‹°μŠ€ν† λ¦¬ λΈ”λ‘œκ·Έμ—μ„œ 전체 κΈ€ μžλ™ μˆ˜μ§‘ (κ°€μž₯ 졜근 μˆ˜μ •λœ κΈ€λΆ€ν„° μˆœμ„œλŒ€λ‘œ 처리)
  • Google Indexing APIλ₯Ό 톡해 μžλ™ 색인 μš”μ²­
  • 이미 μƒ‰μΈλœ 글은 κ±΄λ„ˆλœ€ (쀑볡 λ°©μ§€)

πŸ“¦ μ„€μΉ˜ 방법

Python 3.11 μ΄μƒμ—μ„œ λ‹€μŒ λͺ…λ Ήμ–΄λ‘œ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€:

pip install tistory-indexer

βš™οΈ 사전 μ€€λΉ„

  • Google Cloud Consoleμ—μ„œ ν”„λ‘œμ νŠΈ 생성
  • Web Search Indexing API, Google Search Console API ν™œμ„±ν™”
  • OAuth ν΄λΌμ΄μ–ΈνŠΈ ID 생성 (μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μœ ν˜•: λ°μŠ€ν¬ν†± μ•±)
  • JSON ν˜•μ‹μ˜ ν΄λΌμ΄μ–ΈνŠΈ ID 파일 λ‹€μš΄λ‘œλ“œ (예: oauth_credentials.json)
  • OAuth λ™μ˜ ν™”λ©΄ > λŒ€μƒ > ν…ŒμŠ€νŠΈ μ‚¬μš©μžμ—μ„œ μžμ‹ μ˜ 이메일 μ£Όμ†Œλ₯Ό μΆ”κ°€

πŸ§ͺ μ‚¬μš© 방법

from tistory_indexer import TistoryIndexer

indexer = TistoryIndexer(
    tistory_blog_url="https://your-blog.tistory.com",
    oauth_credentials_path="oauth_credentials.json"
)

indexer.run(pages=5)  # κ°€μž₯ 졜근 μˆ˜μ •λœ κΈ€ 쀑 μ΅œλŒ€ 5개 색인 μš”μ²­

βš™οΈ μ˜΅μ…˜ μ„€λͺ…

μ˜΅μ…˜μ„€λͺ…
tistory_blog_urlν‹°μŠ€ν† λ¦¬ λΈ”λ‘œκ·Έ μ£Όμ†Œ
oauth_credentials_pathOAuth ν΄λΌμ΄μ–ΈνŠΈ ν‚€(JSON) 파일 경둜

πŸ“‹ μš”κ΅¬ 사항

  • Python 3.11 이상
  • μ„€μΉ˜ μ‹œ λ‹€μŒ μ˜μ‘΄μ„±μ΄ μžλ™μœΌλ‘œ ν¬ν•¨λ©λ‹ˆλ‹€:
    • google-auth
    • google-auth-oauthlib
    • requests
    • beautifulsoup4
    • lxml

πŸ“œ λΌμ΄μ„ μŠ€

MIT License Β© 2025 OuOHoon
GitHub: @ouohoon

μžμ„Έν•œ λ‚΄μš©μ€ LICENSE νŒŒμΌμ„ μ°Έκ³ ν•˜μ„Έμš”.

β˜• ν›„μ›ν•˜κΈ°

이 ν”„λ‘œμ νŠΈκ°€ 도움이 λ˜μ—ˆλ‹€λ©΄ 후원을 κ³ λ €ν•΄μ£Όμ„Έμš”!

Buy Me A Coffee

πŸ™‹ 자주 λ¬»λŠ” 질문 (FAQ)

Q. OAuth 인증은 μ–΄λ–»κ²Œ ν•˜λ‚˜μš”?

  • 졜초 μ‹€ν–‰ μ‹œ λΈŒλΌμš°μ €λ₯Ό 톡해 Google 둜그인 창이 λ‚˜νƒ€λ‚©λ‹ˆλ‹€. 둜그인 ν›„ μƒμ„±λœ token.json 파일이 μžλ™ μ €μž₯되며, μ΄ν›„μ—λŠ” μžλ™μœΌλ‘œ μΈμ¦λ©λ‹ˆλ‹€.

Q. 색인 μš”μ²­μ„ 자주 보내도 λ˜λ‚˜μš”?

  • Google Indexing APIλŠ” 무료 μ‚¬μš©μžμ˜ ν•˜λ£¨ μš”μ²­ νšŸμˆ˜μ— μ œν•œ(기본적으둜 200개)이 μžˆμŠ΅λ‹ˆλ‹€. λ¬΄λΆ„λ³„ν•œ μš”μ²­μ€ ν”Όν•΄μ£Όμ„Έμš”.

Q. API둜 색인 μƒνƒœλ₯Ό μ‘°νšŒν•˜λ©΄ "NEUTRAL"이 λœ¨λŠ”λ°, GSCμ—μ„œλŠ” "색인 등둝됨"이라고 λ‚˜μ™€μš”. μ™œ κ·ΈλŸ°κ°€μš”?

  • Google Search Console APIμ—μ„œ λ°˜ν™˜ν•˜λŠ” verdict 값은 μ‹€μ‹œκ°„ 검사 κ²°κ³Ό λ˜λŠ” μ œν•œλœ 뢄석 기반으둜 νŒλ‹¨λ©λ‹ˆλ‹€. μ‹€μ œ 색인 μƒνƒœμ™€ 달리 "NEUTRAL"둜 λ‚˜μ˜¬ 수 있으며, μ΄λŠ” 색인이 μ•ˆ λλ‹€λŠ” μ˜λ―ΈλŠ” μ•„λ‹™λ‹ˆλ‹€.
  • 색인 μ—¬λΆ€λŠ” GSC μ›Ή UI의 색인 μƒνƒœλ„ ν•¨κ»˜ μ°Έκ³ ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.

⚠️ 주의 및 λ©΄μ±… μ‘°ν•­

이 λ„κ΅¬λŠ” Google Indexing APIλ₯Ό μžλ™μœΌλ‘œ μ‚¬μš©ν•˜λŠ” μ˜€ν”ˆμ†ŒμŠ€ λ„κ΅¬μž…λ‹ˆλ‹€.
λ³Έ ν”„λ‘œκ·Έλž¨μ˜ μ‚¬μš©μœΌλ‘œ 인해 λ°œμƒν•˜λŠ” 색인 문제, API μ‚¬μš© μ œν•œ, λ˜λŠ” 기타 손해에 λŒ€ν•΄ μž‘μ„±μžλŠ” μ±…μž„μ§€μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

μ‚¬μš©μžλŠ” λ³Έ 도ꡬλ₯Ό μžμ‹ μ˜ μ±…μž„ν•˜μ— μ‚¬μš©ν•΄μ•Ό ν•˜λ©°,
μ˜ˆμƒμΉ˜ λͺ»ν•œ 결과에 λŒ€ν•΄μ„œλŠ” μ–΄λ– ν•œ 보μž₯도 μ œκ³΅λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

Keywords

blog

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts