mattpodolak / pmaw

A multithread Pushshift.io API Wrapper for reddit.com comment and submission searches.
MIT License
212 stars 28 forks source link

Can not get post_ids #64

Open Royzhang14444 opened 1 year ago

Royzhang14444 commented 1 year ago

I tried the examples on README, but I can not get any result. The code and results are as shown below. I used other post_ids and can not get comment_ids either.

from pmaw import PushshiftAPI api = PushshiftAPI() post_ids = ['kxi2w8','kxi2g1','kxhzrl','kxhyh6','kxhwh0', 'kxhv53','kxhm7b','kxhm3s','kxhg37','kxhak9'] comment_ids = api.search_submission_comment_ids(ids=post_ids) comment_id_list = [c_id for c_id in comment_ids] print(len(comment_id_list))

UserWarning: 10 items were not found in Pushshift warnings.warn(f"{self.limit} items were not found in Pushshift")