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
| function rehypeInlineSvg() { | |
| return (tree) => { | |
| visit(tree, 'element', (node) => { | |
| if (node.tagName === 'code' && node.properties.className && node.properties.className.length > 0 && node.properties.className[0] === 'language-mermaid') { | |
| // We need to look up any elements in the value that are like <img src='/icons/worm.svg' width='25' height='25' /> | |
| // and then directly replace the img with the svg content inline | |
| var mermaidCode = node.children[0].value; | |
| // regex to find all the img tags | |
| const imgRegex = /<img[^>]*\/>/g; |
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
| { | |
| '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', |
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
| 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: |
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
| result = {'song_name': 'khaleel\n@khaleelabdullah_', | |
| 'song_link': 'https://www.tiktok.com/music/All-Time-Low-6744628183687088902?'} |
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
| result = [ | |
| {'link': 'https://www.tiktok.com/@samuelgrubbs/video/6744084223445044485' | |
| , 'author': '@samuelgrubbs', 'likes': 8000000.0}, | |
| {'link': 'https://www.tiktok.com/@laughingallday18/video/6663303834535726341' | |
| , 'author': '@laughingallday18', 'likes': 7500000.0}, | |
| {'link': 'https://www.tiktok.com/@arshsoni10/video/6745099945067515142' | |
| , 'author': '@arshsoni10', 'likes': 6600000.0}, | |
| {'link': 'https://www.tiktok.com/@jaiswal_mukesh/video/6728720154643008769' | |
| , 'author': '@jaiswal_mukesh', 'likes': 5100000.0}, | |
| {'link': 'https://www.tiktok.com/@sweet.n.simple815/video/6726711271649070338' |
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
| { | |
| "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" |
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
| itemInfos | |
| id | |
| text | |
| createTime | |
| authorId | |
| musicId | |
| covers | |
| coversOrigin | |
| coversDynaic | |
| video |
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
| "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": [ |