@@ -52,21 +52,21 @@ def querySullyGnomeActivityStats(uid, username, timecode):
52
52
def createMarkdown (username , extraData ):
53
53
md = ""
54
54
if extraData :
55
- md += f"`{ username } ` | [{ username } ](https://www.twitch.tv/{ username } ) | [YouTube]({ extraData } )\n "
55
+ md += f"<img id= { username } height=30 width=40 src='/img/trans.png'> | `{ username } ` | [{ username } ](https://www.twitch.tv/{ username } ) | [YouTube]({ extraData } )\n "
56
56
else :
57
- md += f"`{ username } ` | [{ username } ](https://www.twitch.tv/{ username } ) | \n "
57
+ md += f"<img id= { username } height=30 width=40 src='/img/trans.png'> | `{ username } ` | [{ username } ](https://www.twitch.tv/{ username } ) | \n "
58
58
return md
59
59
60
60
61
- #activityData=[('0xa_lilkelly', 0.0, ''), ('0xBufu', 0.0, ''), ('aywang', 0.0, ''), ('codingo_', 0.0, 'https://www.youtube.com/channel/UCUfO02gdMDXgOJWdv_jiLMg'), ('crumbswastaken', 0.0, ''), ('ctrlbyte', 0.0, ''), ('cybeardsec', 0.0, ''), ('CyberWarriorStudios', 0.0, 'https://www.youtube.com/channel/UC1BeplJcC5YGHjcF8QyRD7g'), ('data_disciple', 0.0, ''), ('dccybersec', 0.0, 'https://www.youtube.com/channel/UC3sccPO4v8YqCTn8sezZGTw'), ('djax', 0.0, 'https://www.youtube.com/channel/UCJVQ4X0olUFq0nrxS8Xvijg'), ('dmll606', 0.0, ''), ('dowright', 0.0, ''), ('echozach', 0.0, ''), ('fearless0523', 0.0, ''), ('foxcap_', 0.0, ''), ('hattondog', 0.0, ''), ('infinitelogins', 0.0, 'https://www.youtube.com/channel/UC_nKukFaGysjMzqMVHEIgxQ'), ('JohnHammond010', 0.0, 'https://www.youtube.com/channel/UCVeW9qkBjo3zosnqUbG7CFw'), ('jrozner', 0.0, ''), ('magneticpenguin', 0.0, ''), ('majksec', 0.0, ''), ('mell0wx', 0.0, ''), ('nidensec', 0.0, ''), ('officialwillip', 0.0, 'https://www.youtube.com/channel/UCaOOGHgwrcyf527o838yLyg'), ('saucysec', 0.0, ''), ('sawyerone', 0.0, ''), ('Th3lazykid', 0.0, ''), ('blindpentester', 1.0, ''), ('dayzerosec', 1.0, 'https://www.youtube.com/channel/UCXFC76FDHZRVes6_lZqwLBA'), ('desyncryan', 1.0, 'https://www.youtube.com/channel/UCQWQlNq07_Rumy2i69dpqBw'), ('footpics4sale', 1.0, ''), ('hey_its_lgg', 1.0, ''), ('lminzarl', 1.0, ''), ('ryskill', 1.0, ''), ('thecybermentor', 1.0, 'https://www.youtube.com/channel/UC0ArlFuFYMpEewyRBzdLHiw'), ('0reobyte', 2.0, ''), ('0xtib3rius', 2.0, ''), ('alexchaveriat', 2.0, 'https://www.youtube.com/c/AlexChaveriat/videos'), ('anyascii', 2.0, ''), ('cybervno', 2.0, ''), ('hackingesports_eng', 2.0, ''), ('kokencyber', 2.0, ''), ('ltn_bob', 2.0, ''), ('softexploit', 2.0, ''), ('55keez', 3.0, ''), ('alh4zr3d', 3.0, 'https://www.youtube.com/channel/UCz-Z-d2VPQXHGkch0-_KovA'), ('ash_f0x', 3.0, ''), ('biueaider', 3.0, ''), ('chrissean', 3.0, ''), ('cyber_v1s3rion', 3.0, ''), ('digitenchou', 3.0, ''), ('hackingesports', 3.0, ''), ('nahamsec', 3.0, ''), ('securityfwd', 3.0, 'https://www.youtube.com/channel/UCgTNupxATBfWmfehv21ym-g'), ('sharghaas', 3.0, ''), ('slyborgsinner', 3.0, ''), ('sup3rhero1', 3.0, ''), ('dal3ksec', 4.0, ''), ('smash8tap', 4.0, ''), ('thegwar', 4.0, ''), ('themayor11', 4.0, 'https://www.youtube.com/channel/UC5J6JvH5F29FllbLjwmA5ZA'), ('xthe_developer', 4.0, ''), ('mbcrump', 5.0, 'https://www.youtube.com/channel/UCCjHMUEzoCauYet8NG4sCog'), ('xangrychairx', 5.0, 'https://www.youtube.com/channel/UCS1KHdnVAV1-Qx0jquAiBLA'), ('stellargb', 6.0, ''), ('goproslowyo', 7.0, ''), ('mttaggart', 7.0, ''), ('xesquirmy', 7.0, ''), ('alomancy', 8.0, 'https://www.youtube.com/channel/UCe2i94acge3Bv2Tmjla0h_g'), ('endingwithali', 8.0, ''), ('dasrealbert', 9.0, ''), ('chadb_n00b', 12.0, ''), ('cyber_insecurity', 17.0, 'https://www.youtube.com/channel/UCL4JGzitDkX5TOwzs9A02Kg')]
62
- activityData = list (sorted ([(username , querySullyGnomeActivityStats (* getScrapeData (username )),extraData ) for username ,extraData in getTwitchUsernames ()], key = lambda x : x [1 ], reverse = True ))
61
+ activityData = [('0xa_lilkelly' , 0.0 , '' ), ('0xBufu' , 0.0 , '' ), ('aywang' , 0.0 , '' ), ('codingo_' , 0.0 , 'https://www.youtube.com/channel/UCUfO02gdMDXgOJWdv_jiLMg' ), ('crumbswastaken' , 0.0 , '' ), ('ctrlbyte' , 0.0 , '' ), ('cybeardsec' , 0.0 , '' ), ('CyberWarriorStudios' , 0.0 , 'https://www.youtube.com/channel/UC1BeplJcC5YGHjcF8QyRD7g' ), ('data_disciple' , 0.0 , '' ), ('dccybersec' , 0.0 , 'https://www.youtube.com/channel/UC3sccPO4v8YqCTn8sezZGTw' ), ('djax' , 0.0 , 'https://www.youtube.com/channel/UCJVQ4X0olUFq0nrxS8Xvijg' ), ('dmll606' , 0.0 , '' ), ('dowright' , 0.0 , '' ), ('echozach' , 0.0 , '' ), ('fearless0523' , 0.0 , '' ), ('foxcap_' , 0.0 , '' ), ('hattondog' , 0.0 , '' ), ('infinitelogins' , 0.0 , 'https://www.youtube.com/channel/UC_nKukFaGysjMzqMVHEIgxQ' ), ('JohnHammond010' , 0.0 , 'https://www.youtube.com/channel/UCVeW9qkBjo3zosnqUbG7CFw' ), ('jrozner' , 0.0 , '' ), ('magneticpenguin' , 0.0 , '' ), ('majksec' , 0.0 , '' ), ('mell0wx' , 0.0 , '' ), ('nidensec' , 0.0 , '' ), ('officialwillip' , 0.0 , 'https://www.youtube.com/channel/UCaOOGHgwrcyf527o838yLyg' ), ('saucysec' , 0.0 , '' ), ('sawyerone' , 0.0 , '' ), ('Th3lazykid' , 0.0 , '' ), ('blindpentester' , 1.0 , '' ), ('dayzerosec' , 1.0 , 'https://www.youtube.com/channel/UCXFC76FDHZRVes6_lZqwLBA' ), ('desyncryan' , 1.0 , 'https://www.youtube.com/channel/UCQWQlNq07_Rumy2i69dpqBw' ), ('footpics4sale' , 1.0 , '' ), ('hey_its_lgg' , 1.0 , '' ), ('lminzarl' , 1.0 , '' ), ('ryskill' , 1.0 , '' ), ('thecybermentor' , 1.0 , 'https://www.youtube.com/channel/UC0ArlFuFYMpEewyRBzdLHiw' ), ('0reobyte' , 2.0 , '' ), ('0xtib3rius' , 2.0 , '' ), ('alexchaveriat' , 2.0 , 'https://www.youtube.com/c/AlexChaveriat/videos' ), ('anyascii' , 2.0 , '' ), ('cybervno' , 2.0 , '' ), ('hackingesports_eng' , 2.0 , '' ), ('kokencyber' , 2.0 , '' ), ('ltn_bob' , 2.0 , '' ), ('softexploit' , 2.0 , '' ), ('55keez' , 3.0 , '' ), ('alh4zr3d' , 3.0 , 'https://www.youtube.com/channel/UCz-Z-d2VPQXHGkch0-_KovA' ), ('ash_f0x' , 3.0 , '' ), ('biueaider' , 3.0 , '' ), ('chrissean' , 3.0 , '' ), ('cyber_v1s3rion' , 3.0 , '' ), ('digitenchou' , 3.0 , '' ), ('hackingesports' , 3.0 , '' ), ('nahamsec' , 3.0 , '' ), ('securityfwd' , 3.0 , 'https://www.youtube.com/channel/UCgTNupxATBfWmfehv21ym-g' ), ('sharghaas' , 3.0 , '' ), ('slyborgsinner' , 3.0 , '' ), ('sup3rhero1' , 3.0 , '' ), ('dal3ksec' , 4.0 , '' ), ('smash8tap' , 4.0 , '' ), ('thegwar' , 4.0 , '' ), ('themayor11' , 4.0 , 'https://www.youtube.com/channel/UC5J6JvH5F29FllbLjwmA5ZA' ), ('xthe_developer' , 4.0 , '' ), ('mbcrump' , 5.0 , 'https://www.youtube.com/channel/UCCjHMUEzoCauYet8NG4sCog' ), ('xangrychairx' , 5.0 , 'https://www.youtube.com/channel/UCS1KHdnVAV1-Qx0jquAiBLA' ), ('stellargb' , 6.0 , '' ), ('goproslowyo' , 7.0 , '' ), ('mttaggart' , 7.0 , '' ), ('xesquirmy' , 7.0 , '' ), ('alomancy' , 8.0 , 'https://www.youtube.com/channel/UCe2i94acge3Bv2Tmjla0h_g' ), ('endingwithali' , 8.0 , '' ), ('dasrealbert' , 9.0 , '' ), ('chadb_n00b' , 12.0 , '' ), ('cyber_insecurity' , 17.0 , 'https://www.youtube.com/channel/UCL4JGzitDkX5TOwzs9A02Kg' )]
62
+ # activityData = list(sorted([(username, querySullyGnomeActivityStats(*getScrapeData(username)),extraData) for username,extraData in getTwitchUsernames()], key=lambda x: x[1], reverse=True))
63
63
sortedMd = ''
64
64
for username , _ , extraData in activityData :
65
65
sortedMd += createMarkdown (username , extraData )
66
- sortedMd = "---: | --- | :---\n " + sortedMd
66
+ sortedMd = "--: | -- -: | --- | :---\n " + sortedMd
67
67
68
68
with open ('./index.tmpl.md' , 'r' ) as f :
69
69
contents = f .read ()
70
- contents = contents .replace ('---: | --- | :---' , sortedMd )
70
+ contents = contents .replace ('--: | -- -: | --- | :---' , sortedMd )
71
71
with open ('./index.md' , 'w' ) as f :
72
72
f .write (contents )
0 commit comments