Pages:
Author

Topic: [ANN] Free Bitcointalk Forum Account Potential Activity Counter Bot - page 2. (Read 7281 times)

legendary
Activity: 1078
Merit: 1042
www.explorerz.top
I uploaded the files, didnt change anything. I get:

Cannot connect

whats wrong?

EDIT: okay, its my hosting.
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
Look like a good project. Downloaded the source code and noticed a error.

Quote
>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.

It should be line 102 and not 107 for the newest version.

I guess if someone can go so far to edit the timeout then he has the ability to find the line too. You changed the settings or did you only read the code and found that info?

Anyway... looks like the bot works so far.

Thank you Dev... guess you helped a couple of account traders, buyers and escrows out. Smiley
legendary
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
Look like a good project. Downloaded the source code and noticed a error.

Quote
>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.

It should be line 102 and not 107 for the newest version.
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
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.
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
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.
full member
Activity: 204
Merit: 100
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
legendary
Activity: 1106
Merit: 1000
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
full member
Activity: 204
Merit: 100
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
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
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.
full member
Activity: 180
Merit: 1003
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:
ini_set('max_execution_time'1200); //set at 20 minutes
date_default_timezone_set("UTC");
?>





BitcoinTalk User Potential Activity Calculator



Userid (Number) :



/*  ****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 [email protected]
>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>/','',($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 "
Loading page : "
;
$topics=array();
for($i=0;$i $maxpageval;$i++)
{
echo ($i+1).",";
if(($i+1)%50==0) echo "
"
;
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 "

Total Posts="
.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 "
"
;


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

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

echo "

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


}
}
function 
test_input($data)

{

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

}


?>



legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile

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.
full member
Activity: 204
Merit: 100
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
full member
Activity: 210
Merit: 100
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
legendary
Activity: 1722
Merit: 1000
Satoshi is rolling in his grave. #bitcoin

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
legendary
Activity: 1022
Merit: 1003
𝓗𝓞𝓓𝓛
Great, the project is finished.
Whether all of my post is counted, according this one??? Wink
full member
Activity: 204
Merit: 100
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
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
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.
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
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.
hero member
Activity: 756
Merit: 500
But I am not sure how do we use it?
Pages:
Jump to: