- Saved searches
- Use saved searches to filter your results more quickly
- License
- Nyumat/The-TikTok-Bot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- xtekky/TikTok-ViewBot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- License
- avilash/TikTokAPI-Python
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- sudoguy/tiktokpy
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
The Home of the TikTokBot. Created to help creators programmatically generate views/shares on their content.
License
Nyumat/The-TikTok-Bot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
See here and here for why, and, what’s next for this project.
Disclaimer: This bot is for educational purposes, only.
- The Selenium version is patched.
- However, FireLiker.com is still an active service on the internet, here
- The requests version is also patched. TikTok.com’s API is no longer accessible with normal, non-authed headers. (I still can’t believe it was at some point.)
- You can make your own bot instance with this latest commit for another service, such as instagram for example.
- There’s a selenium version and a concurrent, http requests version.
- The selenium version requires a re-write and is barring any revisions to the fireliker.com site, is non-useful (There’s a CAPTCHA).
- The requests version was the original bot, and had its hayday, but is patched as well.
- I’ve comitted changes which will make it easier for developers to create their own bot instance for plug-in-play type use on any social media API.
- Most if not all of the TikTok related inputs can be revised as needed for your use case.
The bot scrapes proxies from free-proxy-list.net. Here’s an example method from the TikTokBot class, with comments explaining the process. The reason this is important is because the proxies are what allow the bot to appear unique to clients.
Note, you may or may not need to create a solution to determine if the proxy is working as free proxies tend to be the most unreliable. Although I will say I’ve had decent luck so far.
def get_elite_proxies(use_http=True): # Generate a random user agent. ua = UserAgent() user_agent = ua.random # Our proxy solution. url = 'https://free-proxy-list.net/' # Define the headers for the request. ua_header = 'User-Agent': user_agent> content = requests.get(url, headers=ua_header).text # Our web scraper, bs4 gives us the HTML elements on the page. soup = BeautifulSoup(content, 'html.parser') rows = [] # It through the table rows we need to scrape for further processing for row in soup.findAll("tr"): rows.append(row) elite_https_proxies = [] # If use_http is false, we'll be using the non-https proxy ips. elite_proxies = [] # Futher process each row to grab the ip for row in rows: # Get the cells i = row.findAll('td') try: # Here/Below, we're just writing to files storing the ip and port. # This can be mofidied for your use case with the bot instance. if use_http == True: if (i[4].text == 'elite proxy') and i[6].text == 'yes': with open('elite_proxies.txt', 'r+') as f: last_line = f.readlines()[-1] f.write(i[0].text + ':' + i[1].text) f.write('\n') elite_https_proxies.append(i[0].text + ':' + i[1].text) else: if (i[4].text == 'elite proxy') and i[6].text == 'no': with open('elite_proxies.txt', 'r+') as f: last_line = f.readlines()[-1] f.write(i[0].text + ':' + i[1].text) f.write('\n') elite_proxies.append(i[0].text + ':' + i[1].text) except: continue # Depending on the argument passed in, we'll use the https list or not. return "\n".join([str(i) for i in elite_https_proxies]) if use_http == True else "\n".join([str(i) for i in elite_proxies])
It was a solid run and honestly, even though this project is now an artifact, I’m thankful for what were able to achieve and show to the world in 2020.
I can forsee a new social media application being creted in the next couple years possibly allowing us to take advantage of weak API design.
But until then, we’ll have to all move forward. Peace ✌🏿
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
ViewBot using requests | Fast, no selenium shit | Custom Views count and clean Design
License
xtekky/TikTok-ViewBot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
UPDATED !! (temporary fix) thanks to @platipus9999
v2.py has automatic captcha solver
1. Verify that you have pip and python installed => https://www.youtube.com/watch?v=dYfKJMPNMDw 2. Run this command in cmd: pip install tls_client requests colorama pillow 3. run the python file by double clicking on it or type: python viewbot.py
1. fast, easy 2. lightweight 3. Has dynamic views count running on TikTok API 4. mobile users can run it
About
ViewBot using requests | Fast, no selenium shit | Custom Views count and clean Design
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
TikTok API Python Wrapper
License
avilash/TikTokAPI-Python
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Unofficial TikTok API Wrapper in Python
This is an unofficial TikTok Api python wrapper. I have an App using this API, and thus will constantly keep updating this wrapper
This implementation is inspired by TikTokApi, but runs faster.
- Getting Started
- Installing
- Methods
- TikTok Class
- Get Trending Videos
- Get User
- Get Videos By UserName
- Get Likes By UserName
- Get HashTag
- Get Videos By HashTag
- Get Music
- Get Videos By Music
- Get Video By Id
- Download Video
- Download Video no Watermark
To get started using this API, follow the instructions below.
git clone https://github.com/avilash/TikTokAPI-Python.git python setup.py install
from TikTokAPI import TikTokAPI
Get your keys from Cookie. You can get them from the Applications tab in Chrome developer console.
By default it used hardcoded values which may not work after some time.
The keys to extract are s_v_web_id and tt_webidGet the most trending Videos on TikTok
api = TikTokAPI(cookie=cookie) retval = api.getTrending(count=5)
api = TikTokAPI(cookie=cookie) user_obj = api.getUserByName("fcbarcelona")
api = TikTokAPI(cookie=cookie) user_videos = api.getVideosByUserName("fcbarcelona")
api = TikTokAPI(cookie=cookie) user_videos = api.getLikesByUserName("fcbarcelona")
This section contains details about the parameters of each function and what it returns
- language — Self explanatory
- region — Self explanatory
- cookie — The TikTok Cookie containing the parameter s_v_web_id. If not provided, the parameter will be generated.
__init__(self, language='en', region='IN', cookie=None)
getUserByName(self, user_name)
getVideosByUserName(self, user_name, count=30)
getLikesByUserName(self, user_name, count=30)
getVideosByHashTag(self, hashTag, count=30)
getVideosByMusic(self, music_id, count=30)
getVideoById(self, video_id)
- video_id — Video Id, eg — 6843481669886954757
- save_path — Path where the downloaded video should be saved
downloadVideoById(self, video_id, save_path)
Download Video No Watermark
- video_id — Video Id, eg — 6843481669886954757
- save_path — Path where the downloaded video should be saved
downloadVideoByIdNoWatermark(self, video_id, save_path)
This project is licensed under the MIT License — see the LICENSE file for details
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Tool for automated TikTok interactions
License
sudoguy/tiktokpy
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
[pre-commit.ci] pre-commit autoupdate
Git stats
Files
Failed to load latest commit information.
README.md
Tooling that automates your social media interactions to “farm” Likes and Followers on TikTok
import asyncio from tiktokpy import TikTokPy async def main(): async with TikTokPy() as bot: # Do you want to get trending videos? You can! trending_items = await bot.trending(amount=5) for item in trending_items: # ❤️ you can like videos await bot.like(item) # or unlike them await bot.unlike(item) # or follow users await bot.follow(item.author.username) # as and unfollow await bot.unfollow(item.author.username) # 😏 getting user's feed user_feed_items = await bot.user_feed(username="justinbieber", amount=5) for item in user_feed_items: # 🎧 get music title, cover, link, author name.. print("Music title: ", item.music.title) # #️⃣ print all tag's title of video print([tag.title for tag in item.challenges]) # 📈 check all video stats print("Comments: ", item.stats.comments) print("Plays: ", item.stats.plays) print("Shares: ", item.stats.shares) print("Likes: ", item.stats.likes) # and many other things 😉 asyncio.run(main())
Install browser by playwright
playwright install chromium
If you have little to no knowledge in programming: Read this Guide «How to use TiktokPy Python Bot» for beginners
To create your cookies and settings.toml file simply run
and then after you login run
About
Tool for automated TikTok interactions