kasceact.blogg.se

Soundcloud bot comments
Soundcloud bot comments







I also filter out any comment including any of the bad words listed in Darius Kazemi's wordfilter.įinally, I use the Yandex translation API to ensure the comment is English.

  • anything pointing to another user or track on SoundCloud.
  • soundcloud bot comments

    replies and mentions (anything including the symbol).classic spam ( free, dollars, cam, sex).self-promotion (anything including the words follow, check out, blog, and any of a half-dozen social networks).So I filter the potential comments rigorously. My aesthetic for this bot is simple, text-only, anonymous. And now it works again! Filtering Comments In any case, I had to rework this script to first fetch a random track and then check if it has any useable comments. (Strangely, the API itself is still returning URIs for comments as though the endpoint still existed-e.g., check the uri property on this comment.) The script picks a number at random, checks if the comment still exists, and passes it on for filtering.Īs of Mathe /comments endpoint was apparently removed from the SoundCloud API, so this stopped working! There was no notice of this on the SoundCloud API blog, but the API reference has nothing about a comments endpoint anymore. I found an old comment ID at 100000000, a recent one at 500000010, and figured that 190 million comments was more than enough of a well from which to draw. Then I discovered that track IDs (and comment IDs) are sequential.

    soundcloud bot comments soundcloud bot comments

    SOUNDCLOUD BOT COMMENTS HOW TO

    How I Built It Getting Random CommentsĪt first I struggled with how to retrieve a random comment-the SoundCloud API doesn't allow for getting random nodes. SoundCloud comments have a certain character: a lot of concise and enthusiastic praise, a ton of spam, the occasional multi-sentence opinion on the production, and, rarely, a negative review. This bot is currently posting every few hours to both Twitter and Mastodon.Īs a lover of music I spend a lot of time on SoundCloud, and can't help but notice the comments. A bot that posts random comments from SoundCloud.







    Soundcloud bot comments