Bitcoin Forum
April 18, 2024, 09:26:03 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [PISSING CONTEST] How "popular" is your favorite Altcoin? Find out here!  (Read 2148 times)
Barnacle_Ed (OP)
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
May 23, 2013, 05:28:05 PM
Last edit: May 24, 2013, 05:05:38 PM by Barnacle_Ed
 #1

While bored on a train ride home the other day, I threw a quick Python script together that tracks how many times each altchain appears in the top N pages on this subforum for funsies and shiggles. This number N is passed in as a command line argument, to try and keep things modular. Additionally, the script counts the number of times that the word "scam" appears in thread titles as a very basic metric to track FUD on this board.


Source code at https://www.dropbox.com/s/8g2ye2ft3xvj5d6/track_altchain_hype.py

I use Python 2.7.3 on my machine. You will also need the BeautifulSoup library, but it has easy_install support so that shouldn't be an issue.


Example run from 9:30 am PST today:

Code:
$>python track_altchain_hype.py 10
Parsing url...https://bitcointalk.org/index.php?board=67
Parsing url...https://bitcointalk.org/index.php?board=67.40
Parsing url...https://bitcointalk.org/index.php?board=67.80
Parsing url...https://bitcointalk.org/index.php?board=67.120
Parsing url...https://bitcointalk.org/index.php?board=67.160
Parsing url...https://bitcointalk.org/index.php?board=67.200
Parsing url...https://bitcointalk.org/index.php?board=67.240
Parsing url...https://bitcointalk.org/index.php?board=67.280
Parsing url...https://bitcointalk.org/index.php?board=67.320
Parsing url...https://bitcointalk.org/index.php?board=67.360
POPULARITY RESULTS:
('LTC', [83, 15404, 950183])
('WDC', [40, 4052, 84124])
('DGC', [28, 2318, 32873])
('PXC', [28, 1631, 18869])
('XRP', [23, 6251, 126662])
('GLD', [21, 1704, 21208])
('DVC', [20, 3692, 82914])
('YAC', [17, 5870, 129839])
('FTC', [16, 2092, 78508])
('BQC', [11, 1912, 40346])
('IXC', [9, 1397, 16831])
('SCAM_INDEX', [9, 286, 7803])
('PPC', [8, 2219, 103103])
('BTE', [8, 1306, 41215])
('PWC', [8, 1013, 16584])
('RYC', [8, 764, 18476])
('JKC', [8, 653, 15343])
('CNC', [7, 1831, 51636])
('NVC', [7, 1757, 50161])
('BTB', [7, 995, 26373])
('NBC', [5, 1306, 18739])
('FRC', [5, 645, 13167])
('TRC', [5, 623, 13955])
('FRK', [3, 581, 12025])
('MNC', [3, 422, 8220])
('BTG', [3, 352, 6042])
('NMC', [3, 11, 304])
('doubloons', [1, 256, 5098])
('SRC', [1, 0, 10])
('SPC', [0, 0, 0])

SCAM RESULTS:
('MNC', [1, u'zacho56'])
('LTC', [1, u'ecliptic'])
('WDC', [0])
('GLD', [0])
('RYC', [0])
('DVC', [0])
('PPC', [0])
('DGC', [0])
('doubloons', [0])
('PXC', [0])
('PWC', [0])
('FRC', [0])
('SRC', [0])
('BQC', [0])
('FRK', [0])
('IXC', [0])
('TRC', [0])
('NBC', [0])
('FTC', [0])
('CNC', [0])
('XRP', [0])
('YAC', [0])
('SPC', [0])
('BTE', [0])
('BTG', [0])
('NVC', [0])
('NMC', [0])
('BTB', [0])
('JKC', [0])

$>


Output for "popularity results" is in the format of [number of threads, number of replies, number of views]

Output for "scam results" is in the format of [number of threads, users who started the threads (if applicable)]



Things I'm planning to improve on:

- Correlate the "scam_index" with the names of altchains to gather data on which coins are considered scams.

- Add additional weight to the counts based on the number of pages in each thread and the thread's position on the board (more visible thread position and more pages in thread == higher popularity weight).

- Keep track of usernames as well to find who the main cheerleaders for each coin are. (Mostly complete, just need to display them properly)

- Write a prettyprinter to make output more self-explanatory and friendly

- Enable sorting by number of replies and views, in addition to number of threads for "popularity" output.

- (Long Term) Write a GUI and allow the output results to be sorted in real-time.



Suggestions I like:

Suggestion - compile a top 10 list of regulars who use the word scam the most.



Again, this is purely for shits and giggles; I'm not trying to make a quick buck or bash any particular coin or anything here...just display some data that I think is interesting. Questions/comments/constructive feedback/suggestions/rude remarks welcome (but maybe not so much on the rude remarks).
1713432363
Hero Member
*
Offline Offline

Posts: 1713432363

View Profile Personal Message (Offline)

Ignore
1713432363
Reply with quote  #2

1713432363
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713432363
Hero Member
*
Offline Offline

Posts: 1713432363

View Profile Personal Message (Offline)

Ignore
1713432363
Reply with quote  #2

1713432363
Report to moderator
1713432363
Hero Member
*
Offline Offline

Posts: 1713432363

View Profile Personal Message (Offline)

Ignore
1713432363
Reply with quote  #2

1713432363
Report to moderator
mr_random
Legendary
*
Offline Offline

Activity: 1274
Merit: 1001


View Profile
May 23, 2013, 05:36:08 PM
 #2

Suggestion - compile a top 10 list of regulars who use the word scam the most.
GSnak
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
May 23, 2013, 05:40:49 PM
 #3

Pretty cool.
BitshireHashaway
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile WWW
May 23, 2013, 05:45:33 PM
 #4

Lol neat.... go goldcoin!
Barnacle_Ed (OP)
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
May 23, 2013, 05:47:41 PM
 #5

Suggestion - compile a top 10 list of regulars who use the word scam the most.

I like it; sounds like a natural extension after keeping track of usernames. Added to first post so I don't forget!
Joe_Bauers
Hero Member
*****
Offline Offline

Activity: 802
Merit: 1003


GCVMMWH


View Profile
May 23, 2013, 05:49:13 PM
 #6


Example run from 10:03 am PST today:

Code:
$>python track_altchain_hype.py 10
Parsing url...https://bitcointalk.org/index.php?board=67
Parsing url...https://bitcointalk.org/index.php?board=67.40
Parsing url...https://bitcointalk.org/index.php?board=67.80
Parsing url...https://bitcointalk.org/index.php?board=67.120
Parsing url...https://bitcointalk.org/index.php?board=67.160
Parsing url...https://bitcointalk.org/index.php?board=67.200
Parsing url...https://bitcointalk.org/index.php?board=67.240
Parsing url...https://bitcointalk.org/index.php?board=67.280
Parsing url...https://bitcointalk.org/index.php?board=67.320
Parsing url...https://bitcointalk.org/index.php?board=67.360
RESULTS:
('ANN', 358923089100485)
('LTC', 85)
('WDC', 38)
('DGC', 32)
('XRP', 27)
('DVC', 23)
('PXC', 22)
('PWC', 19)
('YAC', 18)
('GLD', 16)
('BQC', 13)
('FTC', 11)
('BTE', 10)
('BTB', 10)
('RYC', 8)
('IXC', 8)
('NBC', 8)
('PPC', 7)
('NVC', 7)
('JKC', 7)
('TRC', 6)
('SCAM_INDEX', 6)
('MNC', 4)
('FRC', 3)
('CNC', 3)
('FRK', 2)
('NMC', 2)
('doubloons', 1)
('bitgem', 0)
('SRC', 0)
('SPC', 0)

$>

FXT.  Cheesy
Barnacle_Ed (OP)
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
May 24, 2013, 04:45:33 PM
 #7

Script updated during train ride home yesterday (and coffeebreak at work today). Following enhancements made:


- Correlate the "scam_index" with the names of altchains to gather data on which coins are considered scams.
Fully done.

- Add additional weight to the counts based on the number of pages in each thread and the thread's position on the board (more visible thread position and more pages in thread == higher popularity weight).
Done, but rather than calculating a "weight" from number of replies and views the script simply prints them out instead. I think this is a more fair indicator, and does not require a fancy algorithm to calculate weight.

- Keep track of usernames as well to find who the main cheerleaders for each coin are.
Somewhat done. Can keep track of usernames and have usernames for users who call coins scams. However, have not yet implemented keeping track of usernames for each coin's cheerleaders.



Also will update 1st post with new output. However, the output of the script is starting to look pretty nasty with all this additional data...so there's a new task for my next train ride home.


Next few tasks:
- Write a prettyprinter to make output more self-explanatory and friendly

- Properly display the cheerleaders for each coin

- Enable sorting by number of replies and views, in addition to number of threads for "popularity" output.

- (Long Term) Write a GUI and allow the output results to be sorted in real-time.
Praxis
Legendary
*
Offline Offline

Activity: 1118
Merit: 1004



View Profile
May 24, 2013, 04:55:11 PM
 #8

WDC is popular but what does it help? Its price is still in the toilet.
kr4x
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
May 24, 2013, 04:59:37 PM
 #9

yeeeee gldcoin I see you baby up their!
Barnacle_Ed (OP)
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
May 24, 2013, 05:03:49 PM
 #10

WDC is popular but what does it help? Its price is still in the toilet.

This script is merely here to track popularity and scam accusations, not price. However, it is interesting to see so many WDC threads despite its drop in price.


Perhaps they're all threads complaining about the loss of WDC value? Smiley
Barnacle_Ed (OP)
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
May 30, 2013, 03:45:24 PM
 #11

With the recent surge of altcoins this week, I'm thinking of changing the script to dynamically detect the names of coins if appropriate (rather than using hard-coded values, as it currently does).

Have done basically nothing on this since last time, as I've been lazy Undecided




However, will continue bumping this...especially since there have been a ton of new alts introduced this week. Probably with daily stats once the prettyprinter is done.
JohnCar
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
May 31, 2013, 03:59:20 AM
 #12

Nice little script ty Smiley

TIT coming soon..............
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!