-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.py
40 lines (33 loc) · 905 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from statisfy import Twitch, TRN, YouTube, objectify
import asyncio
import os
import json
from dotenv import load_dotenv
load_dotenv()
ttv = Twitch(
client_id=os.getenv("ttvID"),
secret=os.getenv("ttvS")
)
trn = TRN(
key = os.getenv("trn")
)
yt = YouTube(
key=os.getenv("YT")
)
def test():
info = ttv.getUserByName("aspekts")
## returns dictionary of twitch user's information
apex = trn.ApexLegends(
username="xAspekts",
platform="xbl"
)
## returns dictionary of apex information
query = yt.getVideoByQuery("Niko Omilana")
## returns dictionary of video information
print(query)
test()
""""
Other Config params:
twitter = "AAAAAAAAAAAAAAAAAAAAALkuTAEAAAAA%2FwkO6HB12gZ0NG9g2WE7JZYzxTg%3Dsm00iMNiRAG81Iz2Pga4g2kycZBDPNgujq8K1RxvuUzuKaCgIJ"
"""
#}\nUser Info:\n{apex["userInfo"]}\nMetadata:\n{apex["metadata"]}\nSegments:\n{apex["segments"]}\nStats:\n{apex["stats"]}