Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Feb 14, 2025
1 parent 7c65622 commit 3df66c0
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# api

## link
- [[coupang-partners-api]]
- [[youtube-data-api]]
5 changes: 5 additions & 0 deletions diary/2025-02-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [ ] [[../redis|redis]] aof 모드 상태 파악 [[../@todo|@todo]]
- [X] 채널 검색시 에러
- 전체 피드가 하나인 경우 array 오지 않음
- [X] [[../redis|redis]] 는 pubsub 모드 사용시(`subscribe` 호출에 의한 모드 변경), 이후 일반 사용이 불가
- [ ] 증분 백업 [[../@todo|@todo]]
5 changes: 5 additions & 0 deletions diary/2025-02-14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [[../tubemon.io|tubemon.io]]
- [X] 채널 분류
+ [[../youtube-data-api|youtube-data-api]]
- [X] category 가 ban인 애들이 있음 -> `unknown` 처리
- [X] topic 정보 분류
1 change: 1 addition & 0 deletions pubsubhubbub.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- 액션시에 가끔 상태안좋다고 서버가 거부하기도하고 성공 이벤트 안오기도 함, backoff 등 처리 로직 필요
- `pubsubhubbub` 라이브러리 구현, 외부 접근이 가능한 url 필요, callback 이 이쪽으로 호출 되는 구조
- `https://example.com/callback` 형태
- 재구독하면서 마지막 재구독 `leaseSeconds` 로 구독된다
- 인자
- `hub` 주소는 `https://pubsubhubbub.appspot.com/` 를 사용
- `topic``https://www.youtube.com/xml/feeds/videos.xml?channel_id=${channelId}` 형태
Expand Down
100 changes: 100 additions & 0 deletions youtube-data-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# youtube-data-api
- channel `categoryId` 는 폐기됨
> guideCategory 리소스는 채널의 콘텐츠 또는 채널의 인기도와 같은 기타 지표를 기반으로 YouTube에서 알고리즘을 통해 할당하는 카테고리를 식별합니다. 이 목록은 동영상 카테고리와 유사하지만, 동영상 카테고리는 동영상 업로더가 할당할 수 있지만 채널 카테고리는 YouTube만 할당할 수 있다는 점이 다릅니다.
- videoCategory
- `regionCode` 지정은 video 의 카테고리를 얻어 올 수 있음
- channel.topicDetails
- topic 이 사실상 채널 카테고리
- brandingSettings,contentDetails,contentOwnerDetails,localizations,snippet,statistics,status,topicDetails
```json
{
"kind": "youtube#channelListResponse",
"etag": "khzuzMRLvoMd5LMUXru5xylFDOs",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 5
},
"items": [
{
"kind": "youtube#channel",
"etag": "uvNU2fpn1xdiD1KtlO1rgVSemXE",
"id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"snippet": {
"title": "Google for Developers",
"description": "Subscribe to join a community of creative developers and learn the latest in Google technology — from AI and cloud, to mobile and web.\n\nExplore more at developers.google.com\n\n",
"customUrl": "@googledevelopers",
"publishedAt": "2007-08-23T00:34:43Z",
"thumbnails": {
"default": {
"url": "https://yt3.ggpht.com/2eI1TjX447QZFDe6R32K0V2mjbVMKT5mIfQR-wK5bAsxttS_7qzUDS1ojoSKeSP0NuWd6sl7qQ=s88-c-k-c0x00ffffff-no-rj",
"width": 88,
"height": 88
},
"medium": {
"url": "https://yt3.ggpht.com/2eI1TjX447QZFDe6R32K0V2mjbVMKT5mIfQR-wK5bAsxttS_7qzUDS1ojoSKeSP0NuWd6sl7qQ=s240-c-k-c0x00ffffff-no-rj",
"width": 240,
"height": 240
},
"high": {
"url": "https://yt3.ggpht.com/2eI1TjX447QZFDe6R32K0V2mjbVMKT5mIfQR-wK5bAsxttS_7qzUDS1ojoSKeSP0NuWd6sl7qQ=s800-c-k-c0x00ffffff-no-rj",
"width": 800,
"height": 800
}
},
"localized": {
"title": "Google for Developers",
"description": "Subscribe to join a community of creative developers and learn the latest in Google technology — from AI and cloud, to mobile and web.\n\nExplore more at developers.google.com\n\n"
},
"country": "US"
},
"contentDetails": {
"relatedPlaylists": {
"likes": "",
"uploads": "UU_x5XG1OV2P6uZZ5FSM9Ttw"
}
},
"statistics": {
"viewCount": "311925330",
"subscriberCount": "2420000",
"hiddenSubscriberCount": false,
"videoCount": "6463"
},
"topicDetails": {
"topicIds": [
"/m/019_rr",
"/m/07c1v",
"/m/01k8wb"
],
"topicCategories": [
"https://en.wikipedia.org/wiki/Lifestyle_(sociology)",
"https://en.wikipedia.org/wiki/Technology",
"https://en.wikipedia.org/wiki/Knowledge"
]
},
"status": {
"privacyStatus": "public",
"isLinked": true,
"longUploadsStatus": "longUploadsUnspecified",
"madeForKids": false
},
"brandingSettings": {
"channel": {
"title": "Google for Developers",
"description": "Subscribe to join a community of creative developers and learn the latest in Google technology — from AI and cloud, to mobile and web.\n\nExplore more at developers.google.com\n\n",
"keywords": "\"google developers\" developers \"Google developers videos\" \"google developer tutorials\" \"developer tutorials\" \"developer news\" android firebase tensorflow chrome web flutter \"google developer experts\" \"google launchpad\" \"developer updates\" google \"google design\"",
"trackingAnalyticsAccountId": "YT-9170156-1",
"unsubscribedTrailer": "bC8fvcpocBU",
"country": "US"
},
"image": {
"bannerExternalUrl": "https://yt3.googleusercontent.com/aG8yBYiZrMEPIw8pwusgPjzdPPccrbKqa1JVDs0PNPvj3X45Pr0wPRYBlIdufxn-rqhOKWCR"
}
},
"contentOwnerDetails": {}
}
]
}
```
## link
- [[youtube]]
- [[api]]
1 change: 1 addition & 0 deletions youtube.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- [[kpop]]
- [[circlechart]]
- [[pubsubhubbub]]
- [[youtube-data-api]]

0 comments on commit 3df66c0

Please sign in to comment.