Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Existing as usual...

David Teather davidteather

💭
Existing as usual...
View GitHub Profile
@davidteather
davidteather / TikTok Dictionary
Created May 7, 2020
This is an example of a TikTok dictionary returned by davidteather/TikTok-Api
View TikTok Dictionary
{
'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',
@davidteather
davidteather / MentionExample.py
Last active Apr 6, 2020
Mention Members using GroupyAPI
View MentionExample.py
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 / get_song.py
Created Nov 17, 2019
This is the example dictionary of the get_song method
View get_song.py
result = {'song_name': 'khaleel\n@khaleelabdullah_',
'song_link': 'https://www.tiktok.com/music/All-Time-Low-6744628183687088902?'}
@davidteather
davidteather / trending_method.py
Created Nov 17, 2019
New Trending Example Dictionary
View trending_method.py
@davidteather
davidteather / userPosts.json
Created May 26, 2019
TikTok userPosts example
View userPosts.json
{
"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 / trendingtree.txt
Created May 26, 2019
The Tree structure of the json file for tiktok response
View trendingtree.txt
itemInfos
id
text
createTime
authorId
musicId
covers
coversOrigin
coversDynaic
video
@davidteather
davidteather / ExTikTokResonse.json
Created May 26, 2019
This is an example tiktok api response
View ExTikTokResonse.json
"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": [
You can’t perform that action at this time.