- Joined
- Aug 19, 2023
- Messages
- 911
- Reaction score
- 39,530
- Points
- 93
- Thread Author
- #1
enjoy
Code:
import requests
import json
proxies = [ 'http://localhost:8080', 'http://localhost:8081', 'http://localhost:8082']
accounts = [ 'user1:password1', 'user2:password2', 'user3:password3']
target = 'https://www.tiktok.com/@target_user'
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'
}
for account in accounts:
username, password = account.split(':')
session = requests.session()
session.proxies = {'https': proxies[0]}
response = session.get('https://www.tiktok.com/api/uniqueid/check/?aid=1233&unique_id=target_user', headers=headers)
user_id = response.json()['userInfo']['user']['id']
for proxy in proxies:
session.proxies = {'https': proxy}
data = {
'userId': user_id,
'type': 0,
'reason': 'spam',
'report_type': 0,
'user_flag': 0,
'source': 'message',
'content': '',
'itemId': '',
'secItemId': '',
'id': '',
'challenge_id': '',
'comment_id': '',
'cid': '',
'referer': ''
}
response = session.post(f'https://www.tiktok.com/node/report/user/', headers=headers, data=data)
print(response.json())