turnage / graw

Golang Reddit API Wrapper
MIT License
288 stars 50 forks source link

comment stream issues #41

Open linusheck opened 6 years ago

linusheck commented 6 years ago

I once wrote a reddit bot in Kotlin that reads every comment on reddit and responds to the comments that match certain patterns. It worked like this: https://github.com/glatteis/kotlinjrawstreaming/blob/master/jrawstreaming.kt (The limit=200 actually resets to 100). This bot was successfully able to loop through every comment on reddit, and respond to virtually every comment that matched my patterns. A few days ago I rewrote that bot in go because it's much more portable and hassle-free than the JVM, but for some reason the graw bot is only able to loop through some, not all comments on reddit. I looked through the implementation and there does not seem to be anything different than from my implementation Do you have any clue why this might be? Thanks for your time reading this :)

turnage commented 6 years ago

Have you identified any patterns in what comments graw skips over? What endpoint are you polling for comments?