Mass Comment Editing

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@isnochys·
0.000 HBD
Mass Comment Editing
![](https://imgur.com/lCecMs2.jpg)

Did you fall for one of the latest scams here on Steem?
But you could retrieve your account again and change your keys?
Now you have that incredible task to edit all those spam comments, that have been send out.
This is a real time waster
But I made a script for you!

# Comment mass editing

Again, you will need steem-python.
And just some script changes.
But first, here is the script:

```
from steem import Steem
from steem.blog import Blog
from dateutil import parser


username = 'isnochys'
start_date = '2018-2-24 0:00:00'
end_date = '2018-2-25 0:00:00'

body = 'Comment deleted'

s = Steem()
b = Blog(account_name=username, comments_only=True,steemd_instance=s)

sdp = parser.parse(start_date)
edp = parser.parse(end_date)


for post in b:
	if post.created <sdp:
		break
	if post.created <edp:
		post.edit(body)
```

# What to change
3 things have to be adjusted:
- ```username = 'isnochys'``` that has to be your username
- ```start_date = '2018-2-24 0:00:00'``` when did the comment spamming begin?
- ```end_date = '2018-2-25 0:00:00'``` when did you recover the account and the spamming stopped

Additionally you also can edit ```body = 'Comment deleted'``` to whatever you want to say instead.

But always remember:
## Never give your keys to unknown sources. Check the URL twice!
<h5>Impressed by my python skills? Or not? Anyway, you can <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=isnochys&amp;approve=1" rel="nofollow noopener">vote for me</a> as <a href="https://steemit.com/~witnesses">witness</a> and get a passive income doing so.</h5>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,