mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-07-01 09:50:05 +02:00
remove debug dump
This commit is contained in:
parent
7d7aaa135d
commit
30647d27de
|
@ -487,9 +487,6 @@ def extract_follower_count(webpage):
|
|||
post = traverse_obj(post_data, (
|
||||
..., 'require', ..., ..., ..., '__bbox', 'require', ..., ..., ..., '__bbox', 'result', 'data'), expected_type=dict) or []
|
||||
|
||||
with open('post.json', 'w') as f:
|
||||
json.dump(post, f)
|
||||
|
||||
followers = get_first(post, ('user', 'profile_header_renderer', 'user', 'profile_social_context', 'content', ..., 'text',
|
||||
lambda k, v: k == 'text' and isinstance(v, str) and v.endswith('followers'))) or None
|
||||
if not isinstance(followers, str):
|
||||
|
|
Loading…
Reference in New Issue
Block a user