Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a86f6c4

Browse filesBrowse files
committed
remove unlikes from youtube api code
1 parent a3f1d4c commit a86f6c4
Copy full SHA for a86f6c4

File tree

Expand file treeCollapse file tree

2 files changed

+24
-28
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+24
-28
lines changed
Open diff view settings
Collapse file

‎general/youtube-api/utils.py‎

Copy file name to clipboardExpand all lines: general/youtube-api/utils.py
-2Lines changed: 0 additions & 2 deletions
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

Collapse file

‎general/youtube-api/youtube-api.ipynb‎

Copy file name to clipboardExpand all lines: general/youtube-api/youtube-api.ipynb
+24-26Lines changed: 24 additions & 26 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.