Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 980e440

Browse files
authored
Merge pull request #154 from alexmercerind/comments
Add Comments class
2 parents ea80c73 + a9bcc93 commit 980e440

File tree

10 files changed

+1772
-10
lines changed

10 files changed

+1772
-10
lines changed

‎README.md‎

Lines changed: 743 additions & 0 deletions
Large diffs are not rendered by default.

‎asyncExample.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,19 @@ async def main():
199199

200200

201201

202+
comments = Comments("_ZdsmLgCVdU")
203+
204+
await comments.getNextComments()
205+
print(len(comments.comments["result"]))
206+
207+
while len(comments.comments["result"]) < 100:
208+
await comments.getNextComments()
209+
print(len(comments.comments["result"]))
210+
print("Found all comments")
211+
212+
213+
214+
202215
'''
203216
You may add/omit the optional parameters according to your requirement & use case.
204217
'''

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="youtube-search-python",
8-
version="1.5.3",
8+
version="1.6.0",
99
author="Hitesh Kumar Saini",
1010
license='MIT',
1111
author_email="saini123hitesh@gmail.com",

‎syncExample.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@
201201

202202

203203

204+
comments = Comments("_ZdsmLgCVdU")
205+
206+
print(len(comments.comments["result"]))
207+
208+
while len(comments.comments["result"]) < 100:
209+
comments.getNextComments()
210+
print(len(comments.comments["result"]))
211+
print("Found all comments")
212+
204213

205214
'''
206215
You may add/omit the optional parameters according to your requirement & use case.

0 commit comments

Comments
 (0)