Skip to content

Commit

Permalink
Removed Shadow Ban Because I'm Uncertain now
Browse files Browse the repository at this point in the history
  • Loading branch information
davidteather committed Jun 12, 2020
1 parent 26f772e commit 4c468c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,6 @@ This object returns a TikTok object when given the TikTok ID.
def getTikTokById(self, id, language='en', proxy=None)
```

note: if response returns the following that tiktok is most likely shadow banned from the site.
```
{'statusCode': 10204}
```

##### The isShadowBanned Method

This method returns a boolean if the TikTok in question is shadow banned or not (that the API can tell of)

```
def isShadowBanned(self, id, language='en', proxy=None)
```

##### The getTikTokByUrl Method

This does the same as the getTikTokById method, but it extracts the id out of the url.
Expand Down
10 changes: 0 additions & 10 deletions TikTokApi/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,6 @@ def getTikTokById(self, id, language='en', proxy=None):
b = browser(api_url, proxy=proxy)
return self.getData(api_url, b.signature, b.userAgent, proxy=proxy)

#
# Checks shadow ban
#
def isShadowBanned(self, id, language='en', proxy=None):
d = self.getTikTokById(id, language=language, proxy=proxy)
if d['statusCode'] == 10204:
return True

return False

#
# Get a tiktok object by url
#
Expand Down

0 comments on commit 4c468c1

Please sign in to comment.