Skip to content

Commit c84fed5

Browse files
committed
A little more testing before writing the JS code we need
1 parent 60f940e commit c84fed5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

GetTwoWeekStreamActivity.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@ def querySullyGnomeActivityStats(uid, username, timecode):
5252
def createMarkdown(username, extraData):
5353
md = ""
5454
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"
5656
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"
5858
return md
5959

6060

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))
6363
sortedMd = ''
6464
for username, _, extraData in activityData:
6565
sortedMd += createMarkdown(username, extraData)
66-
sortedMd = "---: | --- | :---\n" + sortedMd
66+
sortedMd = "--: | ---: | --- | :---\n" + sortedMd
6767

6868
with open('./index.tmpl.md', 'r') as f:
6969
contents = f.read()
70-
contents = contents.replace('---: | --- | :---', sortedMd)
70+
contents = contents.replace('--: | ---: | --- | :---', sortedMd)
7171
with open('./index.md', 'w') as f:
7272
f.write(contents)

img/online.jpg

77.4 KB
Loading

img/trans.png

95 Bytes
Loading

index.tmpl.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Please contribute missing streamers or errors via a [pull request](https://githu
1111

1212
## List of Streamers (sorted)
1313

14-
Streamer | Twitch | Other links
15-
---: | --- | :---
14+
Online | Streamer | Twitch | Other links
15+
--: | ---: | --- | :---
1616

1717
### Useful links
1818

js/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
$().ready(function () {
2-
$("#text").html("Text added by jQuery code.");
2+
$("#goproslowyo").src("/img/online.jpg");
33
});

0 commit comments

Comments
 (0)