BioRat1 / ReBomb2

Newest version of the ReBomb: TikTok Mass Report Bot
135 stars 53 forks source link

Proxies #6

Open DABOSS2016YT opened 2 years ago

DABOSS2016YT commented 2 years ago

I've seen that this has not been updated in awhile and was wondering if proxies would ever be added?

siroo2137 commented 2 years ago

i can give you something that i built myself (also in python, without selenium (no webdriver), u use it like this but mine has proxy system lol)

I've seen that this has not been updated in awhile and was wondering if proxies would ever be added?

BioRat1 commented 2 years ago

i can give you something that i built myself (also in python, without selenium (no webdriver), u use it like this but mine has proxy system lol)

I've seen that this has not been updated in awhile and was wondering if proxies would ever be added?

That's what I've been trying to figure out how to do, add proxies (haven't worked on this in a while, been busy with work). How did you add proxies to yours? I tried the free ones but TikTok seems to block them; are they paid?

BioRat1 commented 2 years ago

I've seen that this has not been updated in awhile and was wondering if proxies would ever be added?

Still trying to figure out how to add proxies (been so busy with work lately but i'm getting back on this now). I'm guessing I'm probably going to have to use paid ones since the free one seem to be getting blocked by tiktok

siroo2137 commented 2 years ago

i don't use paid ones, i just scrape proxies myself

siroo2137 commented 2 years ago

and if u want the src of my program, here it is


import random
import json
import time
import os
from colorama import Fore, Back, Style
from addict import Dict

def randnum(fname):
        lines=open(fname).read().splitlines()
        return "http" + random.choice(lines)

# CONFIG
https_or_http = "http"
url = "url of reports"

print(Fore.YELLOW + " PROXY" + Fore.WHITE + " | " + Fore.GREEN + https_or_http)
print(Fore.YELLOW + " URL " + Fore.WHITE + " | " + Fore.GREEN + url)

ilosc_zgloszen = 0

try:
    while True:
        http_proxy  = "http://" + randnum('proxy.txt')
        https_proxy = "https://" + randnum('proxy.txt')

        if (https_or_http == "http"):
            proxies = {
               'http': http_proxy
            }
        elif (https_or_http == "https"):
            proxies = {
               'https': https_proxy
            }
        else:
            print('Bad proxy...')

        r = requests.get(url, proxies=proxies)
        if (r.text is not None):
                    f = json.loads(r.text)
                    j = Dict(f)
                    ilosc_zgloszen = int(ilosc_zgloszen) + 1
                    print(Fore.GREEN + " SUCCESS " + Fore.WHITE + "| " + Fore.GREEN + str(f["status_msg"]) + Fore.WHITE + " (" + Fore.GREEN + str(j.log_pb["impr_id"]) + Fore.WHITE + ") REPORT NUMBER - " + str(ilosc_zgloszen))
        else:
                    print(Fore.RED + " FAIL " + Fore.WHITE + "| " + Fore.RED + str(f["status_msg"]) + Fore.WHITE + " (" + Fore.RED + str(j.log_pb["impr_id"]) + Fore.WHITE + ")")
        time.sleep(0.1)
except Exception as e:
    print(Fore.RED + "Program crashed, restarting! Error: " + str(e))
    os.system('python3 bomber.py')```
BioRat1 commented 2 years ago

and if u want the src of my program, here it is

import random
import json
import time
import os
from colorama import Fore, Back, Style
from addict import Dict

def randnum(fname):
        lines=open(fname).read().splitlines()
        return "http" + random.choice(lines)

# CONFIG
https_or_http = "http"
url = "url of reports"

print(Fore.YELLOW + " PROXY" + Fore.WHITE + " | " + Fore.GREEN + https_or_http)
print(Fore.YELLOW + " URL " + Fore.WHITE + " | " + Fore.GREEN + url)

ilosc_zgloszen = 0

try:
    while True:
        http_proxy  = "http://" + randnum('proxy.txt')
        https_proxy = "https://" + randnum('proxy.txt')

        if (https_or_http == "http"):
            proxies = {
               'http': http_proxy
            }
        elif (https_or_http == "https"):
            proxies = {
               'https': https_proxy
            }
        else:
            print('Bad proxy...')

        r = requests.get(url, proxies=proxies)
        if (r.text is not None):
                    f = json.loads(r.text)
                    j = Dict(f)
                    ilosc_zgloszen = int(ilosc_zgloszen) + 1
                    print(Fore.GREEN + " SUCCESS " + Fore.WHITE + "| " + Fore.GREEN + str(f["status_msg"]) + Fore.WHITE + " (" + Fore.GREEN + str(j.log_pb["impr_id"]) + Fore.WHITE + ") REPORT NUMBER - " + str(ilosc_zgloszen))
        else:
                    print(Fore.RED + " FAIL " + Fore.WHITE + "| " + Fore.RED + str(f["status_msg"]) + Fore.WHITE + " (" + Fore.RED + str(j.log_pb["impr_id"]) + Fore.WHITE + ")")
        time.sleep(0.1)
except Exception as e:
    print(Fore.RED + "Program crashed, restarting! Error: " + str(e))
    os.system('python3 bomber.py')```

Thank you so much! That's the sucky part about it, when I was trying to use free proxies with TikTok it blocked them, unless I was doing something wrong. Gonna try your method and see what happens!