# Spam account scanner script

**URL:** <https://meta.discourse.org/t/spam-account-scanner-script/128948>\
**Category:** Extras\
**Created:** [September 18, 2019, 8:11pm UTC](https://meta.discourse.org/t/spam-account-scanner-script/128948 "2019-09-18T20:11:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tannerfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerfilip/32/122253_2.png) [@tannerfilip](https://meta.discourse.org/u/tannerfilip)\
**Post date:** [September 18, 2019, 8:11pm UTC](https://meta.discourse.org/t/spam-account-scanner-script/128948/1 "2019-09-18T20:11:02Z")

</div>

[https://github.com/TannerFilip/discourse-spam-check](https://github.com/TannerFilip/discourse-spam-check)

I’ll start off by saying, I’m not a great programmer. This is the first “real” tool I’ve written that’s (potentially) useful to people other than me. I’d love any feedback/criticism you have.

I’ve written a Python script that scans through the list of suspect and/or silenced users and lets you delete them if necessary. I ran it over on Mozilla’s Discourse and deleted a few dozen accounts - this was only after I deleted close to a hundred by hand.

There are a few things that seem pretty hacky, especially [lines 174 to 191](https://github.com/TannerFilip/discourse-spam-check/blob/master/main.py#L174). As I said, I’d appreciate any feedback you might have, and would be happy to answer any questions!

---

_[View the full topic](https://meta.discourse.org/t/spam-account-scanner-script/128948)._
