Skip to content

Commit 588dc3d

Browse files
committed
add comments examples
1 parent 7bd7ae6 commit 588dc3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/comments.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pystackapi import Site
2+
from pystackapi.sites import StackOverflow
3+
4+
site = Site(StackOverflow)
5+
6+
comments = site.get_comments_on_questions([11])
7+
8+
for comment in comments:
9+
print(comment.score) # Priting the number of votes

0 commit comments

Comments
 (0)