Skip to main content

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

Project description

tistory-indexer

PyPI Python

티스토리(Tistory) 블로그 글을 자동으로 Google Search Console (GSC)에 색인 요청하는 파이썬 라이브러리입니다.

✅ 블로그가 GSC에 등록되어 있어야 하며, OAuth 인증이 필요합니다.


🚀 주요 기능

  • 티스토리 블로그에서 전체 글 자동 수집 (가장 최근 수정된 글부터 순서대로 처리)
  • Google Indexing API를 통해 자동 색인 요청
  • 이미 색인된 글은 건너뜀 (중복 방지)

📦 설치 방법

Python 3.11 이상에서 다음 명령어로 설치할 수 있습니다:

pip install tistory-indexer

⚙️ 사전 준비

  1. Google Cloud Console에서 프로젝트 생성
  2. Web Search Indexing API, Google Search Console API 활성화
  3. OAuth 클라이언트 ID 생성 (애플리케이션 유형: 데스크톱 앱)
  4. JSON 형식의 클라이언트 ID 파일 다운로드 (예: oauth_credentials.json)
  5. 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_path OAuth 클라이언트 키(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의 색인 상태도 함께 참고하는 것이 좋습니다.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tistory_indexer-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tistory_indexer-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file tistory_indexer-0.1.2.tar.gz.

File metadata

  • Download URL: tistory_indexer-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for tistory_indexer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cbcdf293a6965aacfce1d949794b14e85a1e264093cefc71dd35c63eacb41275
MD5 3b29a7b0941fcf5bffe48ac99e71ffe7
BLAKE2b-256 90912f53c32c2680e05abeada5391bf1b03be88f50278a5cdce53f2cbab7adbe

See more details on using hashes here.

File details

Details for the file tistory_indexer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tistory_indexer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dddefcb5d98da4c0d5d4dbcf35e8c271b9ffd268fd2f5da4232caf5866012d12
MD5 eeab5c2f69d12f750df4835da1dfc8cd
BLAKE2b-256 a8e1296da3c364f234bac5473224640a4738a6efe30fa3d9c7d13e9b583d31d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page