Bitcoin Forum
November 10, 2024, 02:30:49 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: [ANN] Free Bitcointalk Forum Account Potential Activity Counter Bot  (Read 7285 times)
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 09, 2015, 12:21:40 PM
Last edit: September 21, 2015, 12:22:44 PM by SebastianJu
 #1

What a name. Tongue

Description

This bot counts the potential activity of a forum account on BCT. Thats important for the value of an account.

What is this thread about

The crowdfunding at https://bitcointalk.org/index.php?topic=1144973 was successfull. The code will get released now and this thread should serve as the support/feature request/help thread for this bot.

Download

I uploaded the files, that i got from the dev, on sourceforge so you can download them here: https://sourceforge.net/projects/potential-activity-counter-bot/files/

Install

I created a readme file there that gives short instructions on how to use it. If questions come up or if someone has a good xampp tutorial then i can add that info to the readme too.

Payversion

The developer created a payversion at http://www.satoshiquiz.com/bitcointalk/getactivity.php but you can use this script provided here for free. This script is still working and free. There are a couple of other urls that are free, that were set up by other users. So one either can use this script directly, by using it with localhosters like XAMPP or hosting it yourself on webspace, one can use one of the free offers users created with this script on their webspace or you can use the payversion of the developer at http://www.satoshiquiz.com/bitcointalk/getactivity.php. It's payversion is limited to 10 requests per day.

Identity of developer

The developer of that bot is forum member ak111in. When you see him writing here then you can be sure that he knows what he talks about. Smiley

Security

I tested the script on my local host and it works as expected. And i checked out the script before i uploaded it so that i can say that it is safe. I even downloaded simple_html_dom.php from the original website so that i didnt have to check it. Maybe a second person can check the code too.

Feature Requests / Help / Support

In case you want to see new features then i will hold the escrow address, that was used for the fundraising, open. Everything you send to that address will be sent to the developer. You can discuss changes you want to have implemented on here. Maybe some other forum members tip an amount too then for the thing you want to have implemented. So that new features might be implemented then. I already gave the developer a list of all things that might be important for account traders, buyers, escrows or signature campaign overseers.

The escrow address is:

Code:
16N8JZKmb1hLFaErTAz8M3LSPHgwuHQ1YD

Proof of identity:

Code:
-----BEGIN BITCOIN SIGNED MESSAGE-----
20150805 This is the escrow address for the crowdfunding of the potential activity counter bot and the escrow address is 16N8JZKmb1hLFaErTAz8M3LSPHgwuHQ1YD
-----BEGIN SIGNATURE-----
1K2UFGCKyNQNx4h2m5ZRCaw9BWHTBcCZAA
HFUB81CCedOR9tGYtc4TXZSRjkRDspLEksy8TLD2vCHHJ7+zCK5mQG2PdhBjFLxqJQtH3CrhjVlC2UrvBkMzH8I=
-----END BITCOIN SIGNED MESSAGE-----

Message signed with an old address of mine, that i posted may 2013 on bitcointalk. See my Servicethread.

Tips / Donations

Of course you can tip the developer to the above address simply only because you want to thank him too. Smiley

In case you want to tip me, see my donation jar in my profile page... (Left side of page... click on my username) or simply scan the QR-Code from my avatar picture. Wink

Have fun!

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 09, 2015, 12:27:06 PM
Last edit: August 09, 2015, 12:51:07 PM by lastuser
 #2

Where is Download link?
VirustotalSCAN url?

I will use your website thanks Smiley
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 09, 2015, 12:30:28 PM
 #3

Where is Download link?
VirustotalSCAN url?

The download link is in first post. I will make it more orderly...

I did no virustotal link because i checked the code manually. Its only a small script. And the bigger script i downloaded from its original source so that is safe too.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 09, 2015, 12:52:34 PM
 #4

Where is Download link?
VirustotalSCAN url?

The download link is in first post. I will make it more orderly...

I did no virustotal link because i checked the code manually. Its only a small script. And the bigger script i downloaded from its original source so that is safe too.

ok found but we have to download file one by one
IF Zip format file uploaded to Some Hosting servers that is good to download easy

Your website is good - http://www.satoshiquiz.com/bitcointalk/getactivity.php
worldinacoin
Hero Member
*****
Offline Offline

Activity: 756
Merit: 500



View Profile
August 09, 2015, 01:13:42 PM
 #5

But I am not sure how do we use it?
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 09, 2015, 01:20:23 PM
 #6

But I am not sure how do we use it?

You enter the forum member id into that formfield and it can show you the potential activity of that forum account then.

Or do you mean how to install?

Where is Download link?
VirustotalSCAN url?

The download link is in first post. I will make it more orderly...

I did no virustotal link because i checked the code manually. Its only a small script. And the bigger script i downloaded from its original source so that is safe too.

ok found but we have to download file one by one
IF Zip format file uploaded to Some Hosting servers that is good to download easy

Your website is good - http://www.satoshiquiz.com/bitcointalk/getactivity.php

I will check how the zip-download can be activated.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 09, 2015, 01:24:47 PM
 #7

I uploaded a zip-file containing the folder and the readme now. I did not found out how you can enable to download the project in zip file normally on sourceforge. I know thats possible. Maybe someone can tell me.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 09, 2015, 05:34:45 PM
 #8

I uploaded a zip-file containing the folder and the readme now. I did not found out how you can enable to download the project in zip file normally on sourceforge. I know thats possible. Maybe someone can tell me.

I have Done On website

go here signup free hosting hostinger

Upload file and done
Jeremycoin
Legendary
*
Offline Offline

Activity: 1022
Merit: 1003


𝓗𝓞𝓓𝓛


View Profile
August 09, 2015, 09:40:43 PM
 #9

Great, the project is finished.
Whether all of my post is counted, according this one??? Wink

faucet used to be profitable
ajareselde
Legendary
*
Offline Offline

Activity: 1722
Merit: 1000

Satoshi is rolling in his grave. #bitcoin


View Profile
August 09, 2015, 10:49:57 PM
 #10

<cut>
Maybe a second person can check the code too.

I have reviewed the code as well from the zipfile (get_activity.php), it's quite simple one really and there's nothing malicious about it.

It's sort of interesting that account trading evolved so much it needs potential activity counter bot :/

cheers
BurgerKill
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
August 09, 2015, 11:00:08 PM
 #11

Thank you to those who participated in the crowdfunding.

I may upload the bot to one of my sites for public use in the future. Smiley
lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 10, 2015, 09:28:49 AM
 #12

I Created this From your Help but getting error

http://bitcoins.net.in/get_activity.php

check it Please what is error came

Strict Standards: Only variables should be passed by reference in /home/****/public_html/get_activity.php on line 73

Loading page : 1,****8/public_html/get_activity.php on line 106
2,3,


Strict Standards: Only variables should be passed by reference in /home/******/public_html/get_activity.php on line 132
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 10, 2015, 10:47:24 AM
 #13

<cut>
Maybe a second person can check the code too.

I have reviewed the code as well from the zipfile (get_activity.php), it's quite simple one really and there's nothing malicious about it.

It's sort of interesting that account trading evolved so much it needs potential activity counter bot :/

cheers

Yeah, its somewhat interesting. Businesses evolving around bitcoin. Account trading is not a so big business but still... it happens more often than visible in public. I guess theymos is a real libertarian to allow all these side businesses going on on the forum. I think i prefer that against a ruler.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 10, 2015, 10:54:41 AM
 #14

Thanks for answering ak111in.

Is everyone ok with adding ak111in to the sourceforge project so that he can update his script there? Doing so would mean trusting him that everything he uploads will be not malicious.

Let me know what you think.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 10, 2015, 03:50:16 PM
 #15

Thanks for answering ak111in.

Is everyone ok with adding ak111in to the sourceforge project so that he can update his script there? Doing so would mean trusting him that everything he uploads will be not malicious.

Let me know what you think.


Yes Script updated and and Working fine now Yes we trust
ak111in Sir
wadili89
Legendary
*
Offline Offline

Activity: 1106
Merit: 1000


View Profile
August 11, 2015, 01:04:41 AM
 #16

Thanks for answering ak111in.

Is everyone ok with adding ak111in to the sourceforge project so that he can update his script there? Doing so would mean trusting him that everything he uploads will be not malicious.

Let me know what you think.


Yes Script updated and and Working fine now Yes we trust
ak111in Sir

your website http://bitcoins.net.in/get_activity.php is not working i tried couple of times but when i press submit query button it just keeps on loading for like 20 sec and then show nothing just adds no status please check it

please can someone make a working site for this i need to check a status verry bad

lastuser
Full Member
***
Offline Offline

Activity: 204
Merit: 100


View Profile
August 11, 2015, 09:35:51 AM
 #17

Thanks for answering ak111in.

Is everyone ok with adding ak111in to the sourceforge project so that he can update his script there? Doing so would mean trusting him that everything he uploads will be not malicious.

Let me know what you think.


Yes Script updated and and Working fine now Yes we trust
ak111in Sir

your website  is not working i tried couple of times but when i press submit query button it just keeps on loading for like 20 sec and then show nothing just adds no status please check it

please can someone make a working site for this i need to check a status verry bad

Firstly i changed my hosting provider now
I came to this now- Free hosting But its good ---- http://bitcoin.coxslot.com/get_activity.php

And second this Checker is Good working with paid hosting

and your account has 36+ pages Which means 72+ sec Waiting time to get result as I said its free hosting and free service so it works for 400+ activity only
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 11, 2015, 11:12:03 AM
 #18

For now i updated the script with the code ak111in gave in the thread. I uploaded the new files on sourceforge including the zip.

I think it won't take long until someone is hosting it on a website for public use. But please note that the forum has a 1 second request restriction. More than 2 users using the bot at the same time would not be possible. That's why it's good that it's open source and everyone can use it on it's own.

Another thing with such a website would be. When you use the service then the owner might note down which accounts were tested. If you don't want to reveal that you sell an account then having your own script is better.

By the way... the easiest way for me seems to be to host it locally on your pc and use it there anyway. You can control everything there.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 12, 2015, 12:02:38 PM
 #19

I Created this From your Help but getting error

http://bitcoins.net.in/get_activity.php

check it Please what is error came

Strict Standards: Only variables should be passed by reference in /home/****/public_html/get_activity.php on line 73

Loading page : 1,****8/public_html/get_activity.php on line 106
2,3,


Strict Standards: Only variables should be passed by reference in /home/******/public_html/get_activity.php on line 132


It is php warning which you can suppress by adding the following line at the top just before ini_set('max_execution_time', 1200); on new line:
Code:
error_reporting(E_ERROR | E_PARSE);

or you can use the updated script as below which is fixed
 
Code:
<?php
ini_set
('max_execution_time'1200); //set at 20 minutes
date_default_timezone_set("UTC");
?>

<html>
<head>
</head>
<body>
<center><strong>BitcoinTalk User Potential Activity Calculator</strong><br/><br/>
<form action="" method="POST">
<strong>Userid (Number) :</strong> <input type="text" name="userid">
<input type="submit">
</form>

<?php
/*  ****HELP*** 
>Place this(get_activity.php) file and simple_html_dom.php file in the same folder to get this running.
>Ensure that the server allows the script to run for long periods of time. It is set to 20 min in line 2 which should be good for around 12K posts for delay set at 2 seconds.
>Min allowed delay between access for bitcointalk.com is 1 second,but to be safe it is set at 2 seconds at line 107 for this script.
>In case of any issue or another script requirement you can PM ak111in at bitcointalk or email satoshiquiz@gmail.com
>Demo : http://www.satoshiquiz.com/bitcointalk/getactivity.php
*/




if($_SERVER['REQUEST_METHOD'] == 'POST')
{
include_once(
'simple_html_dom.php');
$userid=test_input($_POST["userid"]);
$url="https://bitcointalk.org/index.php?action=profile;u=$userid;sa=showPosts";
$opts = array('http' => array('header' => "User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\r\n"));
$context stream_context_create($opts);
$html file_get_html($urlFALSE$context);
if(
$html=="")
{
echo "Cannot connect";
    die;
}
else
{
//read all posts
ob_end_flush();
ob_start();
$postcontent=$html->find('#bodyarea',0);
if($postcontent=="")
{echo "Cannot connect";die;}

//get total pages
$pagescontent=$postcontent->find('table',0);
$pagesrow=$pagescontent->find('.catbg3',0);
$pageslist=preg_match('/Pages:.*?<\/td>/'$pagesrow$matches);


$pageslist=preg_replace('/<span class=\"prevnext\">.*?<\/span>/','',($matches[0]));

$pageslist=trimpreg_replace('/[^\d. ]/','',strip_tags($pageslist)));

$maxpage=explode(" ",$pageslist);

$temppages=array_values($maxpage);
$maxpageval=end($temppages);

//Can be used to set limit on total posts allowed
if(false && $maxpageval>10)
{echo "Sorry max posts allowed is 200";die;}

//for everypage get all posts
$timestamps=array();$k=0;
echo "<br/><strong>Loading page :</strong> ";
$topics=array();
for($i=0;$i $maxpageval;$i++)
{
echo ($i+1).",";
if(($i+1)%50==0) echo "<br/>";
ob_flush();
    
flush(); 
$allposts=$postcontent->find('table',0)->find('tbody tr td',0)->children();

for($j=1;$j<sizeof($allposts)-1;$j++)
{
$temptimestamp=trim(strip_tags(preg_replace('/on:/','',$allposts[$j]->find('.titlebg2',0)->find('.middletext',-1))));

if (strpos($temptimestamp,'Today') !== false) {
$temptimestamp=preg_replace('/Today at/',date('F j, Y,'),$temptimestamp);
}

$timestamp=strtotime($temptimestamp);
$timestamps[$k]=$timestamp;

$k++;
preg_match('/.*\//'strip_tags($allposts[$j]->find('.titlebg2',0)->find('td',1)), $tmatches);


if(!array_key_exists("$tmatches[0]"$topics))
    {$topics["$tmatches[0]"]=1;}
    else
    {$topics["$tmatches[0]"]=$topics["$tmatches[0]"]+1;}
}

//Can be reduced to 1 second currently set at 2 seconds 
sleep(2);
$pageid=($i+1)*20;
$url="https://bitcointalk.org/index.php?action=profile;u=$userid;sa=showPosts;start=$pageid";
$context stream_context_create($opts);
$html file_get_html($urlFALSE$context);
if($html=="")
{echo "Cannot connect";die;}
$postcontent=$html->find('#bodyarea',0);
if($postcontent=="")
{echo "Cannot connect";die;}

}

echo "<br/><br/><strong>Total Posts=</strong>".sizeof($timestamps);

//count activity
$basetime=strtotime("8/4/2015 12:06:40");
$weekduration=1210000;
//get starting range value
$temptimestamps=array_values($timestamps);
$mintime=end($temptimestamps);
if($mintime<=$basetime)
$startingtime=$basetime-$weekduration*ceil(($basetime-$mintime)/$weekduration);
else
$startingtime=$basetime+$weekduration*floor(($basetime-$mintime)/$weekduration);

$rstart=$startingtime;
$rend=$rstart+$weekduration;
sort($timestamps);$p=0;$rangecount=array();

foreach ($timestamps as $ts
{
    if($ts>$rend)
    {
    while($ts>$rend)
    {
    $rstart=$rstart+$weekduration;
    $rend=$rend+$weekduration;
    }     
    }
    if($ts<=$rend)
    {
    $rstartkey=date("F j, Y, g:i a",$rstart); 
    $rendkey=date("F j, Y, g:i a",$rend); 
    if(!array_key_exists("$rstartkey to $rendkey"$rangecount))
    {$rangecount["$rstartkey to $rendkey"]=1;}
    else
    {$rangecount["$rstartkey to $rendkey"]=$rangecount["$rstartkey to $rendkey"]+1;}
    }
}
echo "<br/>";


foreach ($rangecount as $key => $value) {
    echo "$key : $value<br/>";
}

//calculate activity
$potentialactivity=sizeof($rangecount)*14;
echo "<br/><strong>Potential Activity=$potentialactivity</strong>";

echo "<br/><br/><strong>Topic Analysis</strong><br/>";
foreach ($topics as $key => $value) {
    echo "$key : $value<br/>";
}


}
}
function 
test_input($data)

{

  
$data trim($data);
  
$data stripslashes($data);
  
$data htmlspecialchars($dataENT_QUOTES);
  return 
$data;

}


?>

</center>
</body>
</html>

You posted the script with the demo settings outcommented. I changed the code in the script and uploaded the files again on sourceforge.

That line was the only restriction, right?

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 13, 2015, 11:19:47 AM
 #20

You posted the script with the demo settings outcommented. I changed the code in the script and uploaded the files again on sourceforge.

That line was the only restriction, right?

The condition test for

Code:
if(false && $maxpageval>10)
{echo "Sorry max posts allowed is 200";die;}

will always be false and hence the restriction will not work, so I did not comment it. To add the restriction the user has to remove false and change the statement to

Code:
if($maxpageval>10)
{echo "Sorry max posts allowed is 200";die;}
and restriction will work.

So commenting it is not required but I guess commenting makes it more clear.

Yeah, i notice now. I helped someone setting it up and he had the errormessage that only 200 posts were allowed. I checked the code and found that and did not really check and outcommented it.

At the end he did try to run the demo site only. Smiley I helped him make it work.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
Pages: [1] 2 3 »  All
  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!