As you remember, I am developing a uniqueness check system. For many months, the process of verification for six communities has been going on automatically.
Notification for administrators and moderators goes by means of comments with a mention using "@" account of the administrator or moderator. The comment is published to MY post, that is, for the user, the check takes place "in silent mode" and does not bother him or other members of the community in any way.
What I'm doing right now is monitoring the checkout on the site https://steemlive.com/uniq.phtml
This should be more convenient, and after a while I will turn off the alert with the help of comments. At least for posts with 80% or more uniqueness.
Specifically, today I am busy with the issue of archiving old lists.
I will publish the source code of the steemlive.com page so that it is securely stored on the blockchain.
All_to_archive.js archiving script
fs = require("fs");
let name1;
let name_bd = "all";
let name_type;
let content1;
//all
//all
name1;
name_type = "all";
content1;
name_file1 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+'.txt';
try {
if (fs.existsSync(name_file1)) {
//file exists
console.log('file exists');
name_file2 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+"-archive.txt";
content1 = fs.readFileSync(name_file1, 'utf8');
fs.appendFileSync(name_file2,content1);
fs.unlink(name_file1, (err) => {
if (err) throw err;
console.log('Deed');
});
}
} catch(err) {
console.error(err)
}
//ok
name1;
name_type = "ok";
name_file1 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+'.txt';
try {
if (fs.existsSync(name_file1)) {
//file exists
console.log('file exists');
name_file2 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+"-archive.txt";
content1 = fs.readFileSync(name_file1, 'utf8');
fs.appendFileSync(name_file2,content1);
fs.unlink(name_file1, (err) => {
if (err) throw err;
console.log('Deed');
});
}
} catch(err) {
console.error(err)
}
//less
name1;
name_type = "less";
name_file1 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+'.txt';
try {
if (fs.existsSync(name_file1)) {
//file exists
console.log('file exists');
name_file2 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+"-archive.txt";
content1 = fs.readFileSync(name_file1, 'utf8');
fs.appendFileSync(name_file2,content1);
fs.unlink(name_file1, (err) => {
if (err) throw err;
console.log('Deed');
});
}
} catch(err) {
console.error(err)
}
//error
name1;
name_type = "error";
name_file1 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+'.txt';
try {
if (fs.existsSync(name_file1)) {
//file exists
console.log('file exists');
name_file2 = "/var/www/steemlive/report/"+name_bd+"uniq"+name_type+"-archive.txt";
content1 = fs.readFileSync(name_file1, 'utf8');
fs.appendFileSync(name_file2,content1);
fs.unlink(name_file1, (err) => {
if (err) throw err;
console.log('Deed');
});
}
} catch(err) {
console.error(err)
}
//all
Uniq.phtml source code
<section class="section section-30 section-xxl-40 section-xxl-66 section-xxl-bottom-90 novi-background bg-gray-dark page-title-wrap" style="background-image: url(images/bg-image-1.jpg);">
<div class="container">
<div class="page-title">
<h2>Uniqueness check</h2>
</div>
</div>
</section>
<section class="section section-60 section-md-100">
<div class="container">
<h3 class="text-center">Uniqueness checking for communities</h3>
<h3></h3>
<div class="row row-40">
<div class="col-sm-6 col-md-4 col-xl-3">
<h5>Monitoring for community (please, click for page):</h5>
<ul class="list-marked">
<li><a href="/uniqfamily.phtml">SteemFamily</a></li>
<li><a href="/uniqgarden.phtml">Steemit Garden</a></li>
<li><a href="/uniqtravelers.phtml">Steem Travelers</a></li>
<li><a href="/uniqhealthstyle.phtml">Steem Health Style</a></li>
<li><a href="/uniqsee.phtml">Steem S.A.</a></li>
<li><a href="/uniqcreative.phtml">Creative Steem</a></li>
</ul>
</div>
</div>
</div>
</section>
<section class="section section-bottom-30 section-top-60 section-md-bottom-40 section-md-top-90">
<div class="container">
<h3 class="text-center">Monitoring of all posts</h3>
<div class="row justify-content-md-center">
<div class="col-xl-10">
<div class="tabs-custom tabs-horizontal tabs-corporate" id="tabs-1">
<ul class="nav nav-tabs">
<li><a class="nav-link active" href="#tabs-1-1" data-bs-toggle="tab">
<ul id="ul"></ul>All posts</a></li>
<li><a class="nav-link" href="#tabs-1-2" data-bs-toggle="tab"><ul id="ul"></ul>Posts OK - 80% and more </a></li>
<li><a class="nav-link" href="#tabs-1-3" data-bs-toggle="tab">Posts - less of 80% </a></li>
<li><a class="nav-link" href="#tabs-1-4" data-bs-toggle="tab">Post - Error </a></li>
</script></a></li>
</ul>
<div class="tab-content text-secondary">
<div class="tab-pane fade show active" id="tabs-1-1">
<p>
<section class="section section-60 section-md-bottom-30 section-lg-bottom-50">
<div class="container">
<div class="table-custom-responsive">
<table class="table-custom">
<thead>
<tr>
<th style="min-width: 140px">DateAll</th>
<th style="min-width: 140px">Author</th>
<th style="min-width: 340px">Title</th>
<th style="min-width: 140px">Link to Post</th>
<th style="min-width: 140px">Uniq. %</th>
</tr>
</thead>
<tbody>
<?php
$file = file_get_contents('http://185.213.25.137/report/alluniqall.txt');
echo $file;
file_put_contents("report/alluniqall.txt",$file);
?>
</tbody>
</table>
</div>
</div>
</section>
</p>
</div>
<div class="tab-pane fade" id="tabs-1-2">
<p>
<section class="section section-60 section-md-bottom-30 section-lg-bottom-50">
<div class="container">
<div class="table-custom-responsive">
<table class="table-custom">
<thead>
<tr>
<th style="min-width: 140px">DateOk</th>
<th style="min-width: 140px">Author</th>
<th style="min-width: 340px">Title</th>
<th style="min-width: 140px">Link to Post</th>
<th style="min-width: 140px">Uniq. %</th>
</tr>
</thead>
<tbody>
<?php
$file = file_get_contents('http://185.213.25.137/report/alluniqok.txt');
echo $file;
file_put_contents("report/alluniqok.txt",$file);
?>
</tbody>
</table>
</div>
</div>
</section>
</p>
</div>
<div class="tab-pane fade" id="tabs-1-3">
<p>
<section class="section section-60 section-md-bottom-30 section-lg-bottom-50">
<div class="container">
<div class="table-custom-responsive">
<table class="table-custom">
<thead>
<tr>
<th style="min-width: 140px">DateLess</th>
<th style="min-width: 140px">Author</th>
<th style="min-width: 340px">Title</th>
<th style="min-width: 140px">Link to Post</th>
<th style="min-width: 140px">Uniq. %</th>
</tr>
</thead>
<tbody>
<?php
$file = file_get_contents('http://185.213.25.137/report/alluniqless.txt');
echo $file;
file_put_contents("report/alluniqless.txt",$file);
?>
</tbody>
</table>
</div>
</div>
</section>
</p>
</div>
<div class="tab-pane fade" id="tabs-1-4">
<p>
<section class="section section-60 section-md-bottom-30 section-lg-bottom-50">
<div class="container">
<div class="table-custom-responsive">
<table class="table-custom">
<thead>
<tr>
<th style="min-width: 140px">DateError</th>
<th style="min-width: 140px">Author</th>
<th style="min-width: 340px">Title</th>
<th style="min-width: 140px">Link to Post</th>
<th style="min-width: 140px">Uniq. %</th>
</tr>
</thead>
<tbody>
<?php
$file = file_get_contents('http://185.213.25.137/report/alluniqerror.txt');
echo $file;
file_put_contents("report/alluniqless.txt",$file);
?>
</tbody>
</table>
</div>
</div>
</section>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</p>
<section class="section section-bottom-30 section-top-60 section-md-bottom-40 section-md-top-90"><p><div>
<div class="container">
<h3 class="text-center"><a href="https://steemlive.com/alluniq-archive.phtml">Archive of list monitoring all posts (click to open)</a></h3> </div></p>
</div> </div>
</section>
</div>
</div>
</div>
</div>
</div>
</section>
Thank you for your attention
Have a good day
good work .
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You got a 70.74% upvote from @dkpromoter!
Get Daily Return by delegating to the bot and earn a passive income on your spare SP while helping the Steem Community
500 SP 1000 SP 2000 SP 5000 SP 10000 SP 20000 SP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit