Skip to content

Instantly share code, notes, and snippets.

View davidteather's full-sized avatar
💭
Existing as usual...

David Teather davidteather

💭
Existing as usual...
View GitHub Profile
@davidteather
davidteather / ExTikTokResonse.json
Created May 26, 2019 16:33
This is an example tiktok api response
"itemInfos": {
"id": "6694621537774882054",
"text": "the pranks never stop with @laurengodwin 😳😱 #tiktok #foryou",
"createTime": "1558713042",
"authorId": "8248852",
"musicId": "6681612705071237893",
"covers": [
"https://m-p16.akamaized.net/obj/tos-maliva-p-0068/dbd1b312436f4f4ea117d73a690fb1fa"
],
"coversOrigin": [
@davidteather
davidteather / trendingtree.txt
Created May 26, 2019 16:43
The Tree structure of the json file for tiktok response
itemInfos
id
text
createTime
authorId
musicId
covers
coversOrigin
coversDynaic
video
@davidteather
davidteather / userPosts.json
Created May 26, 2019 16:49
TikTok userPosts example
{
"statusCode": 0,
"body": {
"pageState": {
"regionAppId": 1233,
"os": "windows",
"region": "US",
"baseURL": "m.tiktok.com",
"appType": "m",
"fullUrl": "https://m.tiktok.com/share/item/list?id=6614616633741737990&type=1&count=48&minCursor=0&maxCursor=0&_signature=reEdRhAX8RqkrWdTZLFJvq3hHV"
@davidteather
davidteather / trending_method.py
Created November 17, 2019 21:43
New Trending Example Dictionary
@davidteather
davidteather / get_song.py
Created November 17, 2019 21:46
This is the example dictionary of the get_song method
result = {'song_name': 'khaleel\n@khaleelabdullah_',
'song_link': 'https://www.tiktok.com/music/All-Time-Low-6744628183687088902?'}
@davidteather
davidteather / MentionExample.py
Last active April 6, 2020 03:45
Mention Members using GroupyAPI
groupID = "groupID"
targetToTag = "David Teather"
group = client.groups.get(groupID)
def tagMembers(message, mentions):
loci = [message.index(mentions.name)-1, message.index(mentions.name) + len(mentions.name)-1]
return attachments.Mentions([loci], [mentions.user_id])
for member in group.members:
@davidteather
davidteather / TikTok Dictionary
Created May 7, 2020 19:49
This is an example of a TikTok dictionary returned by davidteather/TikTok-Api
{
'id': '6818316025491246342',
'desc': 'My 2015 moves still play in 2020�😂 #quarantinelife #throwback',
'createTime': 1587512910,
'video': {
'height': 626,
'width': 470,
'duration': 11,
'ratio': '480p
'cover': 'https://p16.muscdn.com/obj/tos-maliva-p-0068/5951967888f341628c687b582f1970ac_1587512912',