This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const publicKey = provider.wallet.publicKey | |
const client = buildWhirlpoolClient(ctx) | |
// Configure the client to use the local cluster. | |
let atas = await connection.getParsedTokenAccountsByOwner(provider.wallet.publicKey,{programId: TOKEN_PROGRAM_ID}) | |
for (var p of atas.value){ | |
try { | |
p = atas.value[Math.floor(Math.random() * atas.value.length)] | |
console.log(p.account.data.parsed.info.mint) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import json | |
for file in glob.glob("dataexport/result.json"): | |
with open(file) as f: | |
data = json.load(f) | |
with open('dataexport/result.txt', 'a+') as f: | |
for chat in data['chats']['list']: | |
for msg in chat['messages']: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import json | |
for file in glob.glob("dataexport/result.json"): | |
with open(file) as f: | |
data = json.load(f) | |
with open('dataexport/result.txt', 'a+') as f: | |
for chat in data['chats']['list']: | |
for msg in chat['messages']: | |
try: | |
f.write(json.dumps({'username':msg['from'], "message": msg['text']}) + '\n') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70736274ff0100fe24ad0e0002000000000102718ca1e695a65bee5824fb346e7f4f6e8207350bafe8bf390de1dac09e18b8df0000000000ffffffff718ca1e695a65bee5824fb346e7f4f6e8207350bafe8bf390de1dac09e18b8df0100000000ffffffff049a020000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d20100000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d2010000000000225120b4c6efefe9da5a5b5d76056fb8aa2962d78c068dda7fd9513b62c5232c99881be7030000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a96451656803419047c2dac5586012f1f24d3de0d712506609dcce2f6c09752e9417722e8559ed198760287ae146e7288f15fc8f72fb41cfc18ae6a0949d37b8caa8de761667a083fea35507000063036f7264010109696d6167652f706e67004d080289504e470d0a1a0a0000000d49484452000003e8000003e808060000004da3d4e400074a9049444154789cecbd699334b971a0e9c8bb8ef7ea6eb24591223592463366b3bb1ff6cbfcff5fb0666bb6a6d16867462b91cdbed8ef51555979633f4446641c38fc42446415dcc87eab120e7704029185c71d0198a93116b264c9323a3198528f9201001bb5c1f18bab6d64 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70736274ff0100fe24ad0e00020000000001028a167cbefb18216f728451cea451e550d4bb32898b9011b93cc53177aade04a30000000000ffffffff8a167cbefb18216f728451cea451e550d4bb32898b9011b93cc53177aade04a30100000000ffffffff049a020000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d20100000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d201000000000022512004531c996d64b513db1cf3d1a7b0c0a6cb6a418cf7d570f2a9d1bef5bb9fb073e7030000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568034139fadc2a0e5710620cca9ebb98d51ff3d7548483f5b718b48b3dd92aaf261987429fb56dfb86a69f4edba5784ddf2e5f59cf6bb5824f26c778601c3454cf66cb83fea35507000063036f7264010109696d6167652f706e67004d080289504e470d0a1a0a0000000d49484452000003e8000003e808060000004da3d4e400074a9049444154789cecbd699334b971a0e9c8bb8ef7ea6eb24591223592463366b3bb1ff6cbfcff5fb0666bb6a6d16867462b91cdbed8ef51555979633f4446641c38fc42446415dcc87eab120e7704029185c71d0198a93116b264c9323a3198528f9201001bb5c1f18bab6d64 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70736274ff0100fe24ad0e0002000000000102c598e95001f0c5ea7edc105e6f81ad48253e0fe123665cfa8bfc28ea1d49ac260000000000ffffffffc598e95001f0c5ea7edc105e6f81ad48253e0fe123665cfa8bfc28ea1d49ac260100000000ffffffff049a020000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d20100000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a964516568b2d20100000000002251206b51d4d5719f4863345754770246d9a7f0a58c55d94de0920ef27933dee72b93e7030000000000002251207e6fd95a607abc1efed6cd925b4a90abcc1725499aa83d9685e330a96451656803413298adccf7488c4984e85ea3f1617b28b3912adfbab72f82decdb19ee1d989fc1e25f8baa43e36f2672d55a0d36bd1be3040f4a7619503c38e5a49e1c739505a83fea35507000063036f7264010109696d6167652f706e67004d080289504e470d0a1a0a0000000d49484452000003e8000003e808060000004da3d4e400074a9049444154789cecbd699334b971a0e9c8bb8ef7ea6eb24591223592463366b3bb1ff6cbfcff5fb0666bb6a6d16867462b91cdbed8ef51555979633f4446641c38fc42446415dcc87eab120e7704029185c71d0198a93116b264c9323a3198528f9201001bb5c1f18bab6d64 |