Bitcoin Forum
May 06, 2024, 10:50:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automatic SPAM Deletion Bot for Self Moderated Topics  (Read 1022 times)
Evil-Knievel (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1168



View Profile
April 13, 2016, 12:47:55 PM
Last edit: April 20, 2016, 08:36:22 AM by Evil-Knievel
 #1

If you have any feature requests,
just post them here and I will take care of it.



UPDATE: Feature to filter out certain keywords has been added


Github Repository:
https://github.com/OrdinaryDude/XXLTerminate

XXLTerminate - An Automatic SPAM Deletion Bot for Self Moderated Topics
(Note, this work is based on XSTerminate, so the credits go to: https://bitcointalk.org/index.php?topic=850210.0)

XXLTerminate is a bot that can crawl new messages in your thread and delete posts from unwelcome members or delete posts that contain one of multiple, forbidden keywords.
XXLTerminate is a python program with only two dependencies: pyyaml and BeautifulSoup. The dependencies can be installed by

Code:
sudo pip install -r requirements.txt

Usage

Code:
xxlterminate deletebot.yml

Configuration

The file "lusers.txt" contains all unwanted users, one per line.

The file "lwords.txt" contains all unwanted keywords (regardless of the user), one per line.

The file "deletebot.yml" is a yaml file which contains several important settings.

user: the bitcointalk username
password: the bitcointalk password (remove or make null for getpass)
topic: the bitcointalk topic number found in the topic url
lusers: the luser blacklist with one luser name per line
lwords: the lwords blacklist with one prohibited word per line
sleep: be nice to bitcointalk by sleeping between thread reloads
cookiefile: the file wherein cookies are stored
debug: prints debug output if set to "true"; omit or set to false if unwanted
The settings "sleep", "debug" can be changed in the config file while the bot is live and the bot will adjust its behavior upon the next reload of the thread messages.
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715035818
Hero Member
*
Offline Offline

Posts: 1715035818

View Profile Personal Message (Offline)

Ignore
1715035818
Reply with quote  #2

1715035818
Report to moderator
1715035818
Hero Member
*
Offline Offline

Posts: 1715035818

View Profile Personal Message (Offline)

Ignore
1715035818
Reply with quote  #2

1715035818
Report to moderator
1715035818
Hero Member
*
Offline Offline

Posts: 1715035818

View Profile Personal Message (Offline)

Ignore
1715035818
Reply with quote  #2

1715035818
Report to moderator
Hazelnutter
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile WWW
April 13, 2016, 04:40:30 PM
 #2

This looks pretty cool, I'll have to test it out soon.
Nice work, Evil-Knievel.

❰❰ OPHION ❱❱▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨ A SECURE, ANONYMOUS & DECENTRALIZED MARKET ▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨❰❰ OPHION ❱❱
TRADE GOODS OR SERVICES ■NO LOGGING - AT ALL■ 2 OF 3 MULTISIG AUTOMATION ■SELLER/BUYER RATING SYSTEM■ AND MANY MORE
❰❰▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬❰❰ JOIN THE CROWDSALE ❱❱▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬❱❱
ed_teech
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Jahaha


View Profile
April 16, 2016, 07:18:04 AM
 #3

Cool ! I remember Hondo's work on XSTerminate was very efficient for the XST thread.
Slark
Legendary
*
Offline Offline

Activity: 1862
Merit: 1004


View Profile
April 17, 2016, 10:48:49 AM
 #4

It is not really spam remover per se, this script  is not intelligent enough - it is tool which can only delete every post of unwanted users based on predefined list of spammers.
I guess it can be useful as moderation tool in long and heavy trolled threads.
KenR
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000


「きみはこれ&#


View Profile
April 17, 2016, 10:51:59 AM
 #5

Nice attempt.Don't know how accurate the spam detection will be.How does the bot find out if a particular post is a spam ? Length ? Rank ? Its not really needed when the owner of the thread can delete spam by click of just one button.Not saying its not nice to automate stuff but when manually you can achieve more accuracy ,why not just let it be like that.

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .WEBSITE.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .ANN THREAD.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
ed_teech
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Jahaha


View Profile
April 18, 2016, 06:29:12 AM
 #6

Nice attempt.Don't know how accurate the spam detection will be.How does the bot find out if a particular post is a spam ? Length ? Rank ? Its not really needed when the owner of the thread can delete spam by click of just one button.Not saying its not nice to automate stuff but when manually you can achieve more accuracy ,why not just let it be like that.

This tool was developed to fight trolls in altcoin spam wars. As these fanboys' users were known, this was the tool to remove their spam from the thread. The amount of spam was so high that announcements and constructive posts were not visible to future investors, and a moderator was not always available to clean it up.
Evil-Knievel (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1168



View Profile
April 20, 2016, 08:22:27 AM
 #7

I have just pushed a major update to the git.

Now, not only can you permanently delete certain users but you can also define certain keywords that will cause the according message to be deleted immediately regardless of who has posted it (one forbidden keyword per line has to be specified in lwords.txt).

Evil-Knievel (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1168



View Profile
April 20, 2016, 08:43:00 AM
 #8

It is not really spam remover per se, this script  is not intelligent enough - it is tool which can only delete every post of unwanted users based on predefined list of spammers.
I guess it can be useful as moderation tool in long and heavy trolled threads.

It just became a little more intelligent ;-) You can now filter by keywords.
Evil-Knievel (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1168



View Profile
April 20, 2016, 04:25:28 PM
 #9

Warning, there seems to be some problem when the "keyword" appears somewhere else on the page . Maybe someone can check and fix that, I have not that much time at the moment.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!