Skip to content

Commit a86f6c4

Browse files
committed
remove unlikes from youtube api code
1 parent a3f1d4c commit a86f6c4

File tree

2 files changed

+24
-28
lines changed

2 files changed

+24
-28
lines changed

general/youtube-api/utils.py

-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def print_video_infos(video_response):
6969
# get stats infos
7070
comment_count = statistics["commentCount"]
7171
like_count = statistics["likeCount"]
72-
dislike_count = statistics["dislikeCount"]
7372
view_count = statistics["viewCount"]
7473
# get duration from content details
7574
duration = content_details["duration"]
@@ -89,7 +88,6 @@ def print_video_infos(video_response):
8988
Duration: {duration_str}
9089
Number of comments: {comment_count}
9190
Number of likes: {like_count}
92-
Number of dislikes: {dislike_count}
9391
Number of views: {view_count}
9492
""")
9593

general/youtube-api/youtube-api.ipynb

+24-26
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
{
2-
"metadata": {
3-
"language_info": {
4-
"codemirror_mode": {
5-
"name": "ipython",
6-
"version": 3
7-
},
8-
"file_extension": ".py",
9-
"mimetype": "text/x-python",
10-
"name": "python",
11-
"nbconvert_exporter": "python",
12-
"pygments_lexer": "ipython3",
13-
"version": "3.8.7-final"
14-
},
15-
"orig_nbformat": 2,
16-
"kernelspec": {
17-
"name": "python36664bitea6884f10f474b21a2a2f022451e0d09",
18-
"display_name": "Python 3.6.6 64-bit",
19-
"language": "python"
20-
}
21-
},
22-
"nbformat": 4,
23-
"nbformat_minor": 2,
242
"cells": [
253
{
264
"cell_type": "code",
@@ -120,7 +98,6 @@
12098
" # get stats infos\n",
12199
" comment_count = statistics[\"commentCount\"]\n",
122100
" like_count = statistics[\"likeCount\"]\n",
123-
" dislike_count = statistics[\"dislikeCount\"]\n",
124101
" view_count = statistics[\"viewCount\"]\n",
125102
" # get duration from content details\n",
126103
" duration = content_details[\"duration\"]\n",
@@ -140,7 +117,6 @@
140117
" Duration: {duration_str}\n",
141118
" Number of comments: {comment_count}\n",
142119
" Number of likes: {like_count}\n",
143-
" Number of dislikes: {dislike_count}\n",
144120
" Number of views: {view_count}\n",
145121
" \"\"\")"
146122
]
@@ -392,5 +368,27 @@
392368
"outputs": [],
393369
"source": []
394370
}
395-
]
396-
}
371+
],
372+
"metadata": {
373+
"kernelspec": {
374+
"display_name": "Python 3.6.6 64-bit",
375+
"language": "python",
376+
"name": "python36664bitea6884f10f474b21a2a2f022451e0d09"
377+
},
378+
"language_info": {
379+
"codemirror_mode": {
380+
"name": "ipython",
381+
"version": 3
382+
},
383+
"file_extension": ".py",
384+
"mimetype": "text/x-python",
385+
"name": "python",
386+
"nbconvert_exporter": "python",
387+
"pygments_lexer": "ipython3",
388+
"version": "3.8.7-final"
389+
},
390+
"orig_nbformat": 2
391+
},
392+
"nbformat": 4,
393+
"nbformat_minor": 2
394+
}

0 commit comments

Comments
 (0)