Skip to main content

TODO

  • 여유될때, extractor 부분 좀더 구조화 가능.
  • 또한, 각 Resource에서 비디오, 채널등 특화된 추출 코드들을 Extractor로 옮기고, YoutubeBasicInfoExtractor를 상속해서 구성하면 훨씬 깔끔할듯
  • 필요하면, TorNetwork를 이용해서 접근 IP를 감출 수 있음
  • 추후, 응답 데이터 빌드 단계는 분리하기.
  • requests_oauth, pip install dataclasses-json, isodate, pip install python-youtube, webdriver_manager

References - thanks

[pyyoutube] https://github.com/sns-sdks/python-youtube/tree/a531987cf5f426170399f227ca07a85ecba1358f [Youtube-Local] https://github.com/search?q=repo%3Auser234683%2Fyoutube-local%20request_comments&type=code [Youtube-DL] https://github.com/ytdl-org/youtube-dl/blob/be008e657d79832642e2158557c899249c9e31cd/youtube_dl/extractor/common.py#L1014 [Youtube-Crawler] https://github.com/jaryeonge/youtube-crawler/blob/5af1421ed4a76a1b9ca57ea968c936e63395675f/src/crawling_module/vod_meta.py#L141 [Youtube-Search-Python] https://github.com/GHOSTEPROG-OFFICIAL/youtube-search-python/blob/main/youtubesearchpython/core/comments.py [Mining] https://github.com/medialab/minet/tree/82d862dbd434d6535a6bec23cfb7c35d864440c0 https://github.com/x4nth055/pythoncode-tutorials/blob/cf194de63299b9a7de25cdd046721da172426e3b/web-scraping/youtube-extractor/extract_video_info.py#L2

Update

pip install --upgrade ytvs

Build and publish

poetry build  # Build
python -m twine upload --skip-existing dist/*   # Deployment

Version history

0.0.4

  • API 파라미터는 Keyword parameter로 입력받도록 제약 걸기
  • 각 API 함수의 응답 타입 명시하기
  • build_search_v1_resource_url
  • video.py 76 번째 줄, extract_comments_header_render 부분 수정
  • DataParameterBuilder, kr -> KR 수정
  • extract_comments_header_renderer, 입력 파라미터가 None인 경우 예외처리 추가
  • extract_like_count, extract_view_count -> number string 확인 후 예외 처리 추가 필요

Metadata

Release files for ytvs 0.0.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ytvs 0.0.28
File Size Uploaded
ytvs-0.0.28.tar.gz 79.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ytvs 0.0.28
File Interpreter ABI Platform
ytvs-0.0.28-py3-none-any.whl Python 3 none any Details

Total release size: 198.4 kB

Release files / ytvs-0.0.28.tar.gz

Download URL ytvs-0.0.28.tar.gz
Size 79.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6fe55b67087f0a10459eaf59abe7878b7b89828e46454293f1de0f6ed3b8a879
BLAKE2b-256 checksum
How to use checksums
6af6c9debbd5fcec488ca626776443225c55d9a5017f875e260cfd988f1ab543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / ytvs-0.0.28-py3-none-any.whl

Download URL ytvs-0.0.28-py3-none-any.whl
Size 118.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3541d39765a9c9f3704ab943c96bab5fc56647dff3d32fd7107fb0c9f81a2015
BLAKE2b-256 checksum
How to use checksums
8fc8371898f6cdbdeacffe098705b74d2b8b51fcea94b756fdc22a496e6ec54e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page