feat: Reddit 수집, 쇼츠 텔레그램 미리보기, 코너 9개 체계 정비
- Reddit 트렌딩 수집기 추가 (/reddit collect, /pick 명령어) - 쇼츠 영상 텔레그램 미리보기 후 승인 기반 YouTube 업로드 - 코너 9개로 통합 (앱추천→제품리뷰, 재테크절약→재테크, TV로보는세상/건강정보 추가) - RSS 피드 73개로 확대 (9개 코너 전체 커버) - 블로그 중복 검토 알림 수정, 글 잘림 방지 (max_tokens 8192) - 제품리뷰 다중 이미지 지원, 저품질 이미지 필터링 강화 - HookOptimizer LLM 연동, 인스타/X/틱톡 스케줄러 비활성화 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,10 @@ def _search_pexels(keyword: str, api_key: str, prefer_vertical: bool = True) ->
|
||||
})
|
||||
req = urllib.request.Request(
|
||||
f'{PEXELS_VIDEO_URL}?{params}',
|
||||
headers={'Authorization': api_key},
|
||||
headers={
|
||||
'Authorization': api_key,
|
||||
'User-Agent': 'Mozilla/5.0 (compatible; BlogWriter/1.0)',
|
||||
},
|
||||
)
|
||||
try:
|
||||
with urllib.request.urlopen(req, timeout=15) as resp:
|
||||
@@ -93,7 +96,10 @@ def _search_pixabay(keyword: str, api_key: str, prefer_vertical: bool = True) ->
|
||||
'video_type': 'film',
|
||||
'per_page': 10,
|
||||
})
|
||||
req = urllib.request.Request(f'{PIXABAY_VIDEO_URL}?{params}')
|
||||
req = urllib.request.Request(
|
||||
f'{PIXABAY_VIDEO_URL}?{params}',
|
||||
headers={'User-Agent': 'Mozilla/5.0 (compatible; BlogWriter/1.0)'},
|
||||
)
|
||||
try:
|
||||
with urllib.request.urlopen(req, timeout=15) as resp:
|
||||
data = json.loads(resp.read())
|
||||
|
||||
Reference in New Issue
Block a user