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

Commit

Permalink
Merge pull request #154 from alexmercerind/comments
Browse files Browse the repository at this point in the history
Add Comments class
  • Loading branch information
mytja authored Jan 20, 2022
2 parents ea80c73 + a9bcc93 commit 980e440
Show file tree
Hide file tree
Showing 10 changed files with 1,772 additions and 10 deletions.
743 changes: 743 additions & 0 deletions README.md

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions asyncExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,19 @@ async def main():



comments = Comments("_ZdsmLgCVdU")

await comments.getNextComments()
print(len(comments.comments["result"]))

while len(comments.comments["result"]) < 100:
await comments.getNextComments()
print(len(comments.comments["result"]))
print("Found all comments")




'''
You may add/omit the optional parameters according to your requirement & use case.
'''
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="youtube-search-python",
version="1.5.3",
version="1.6.0",
author="Hitesh Kumar Saini",
license='MIT',
author_email="saini123hitesh@gmail.com",
Expand Down
9 changes: 9 additions & 0 deletions syncExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@



comments = Comments("_ZdsmLgCVdU")

print(len(comments.comments["result"]))

while len(comments.comments["result"]) < 100:
comments.getNextComments()
print(len(comments.comments["result"]))
print("Found all comments")


'''
You may add/omit the optional parameters according to your requirement & use case.
Expand Down
Loading

0 comments on commit 980e440

Please sign in to comment.