Paranoid Android
Elite Member
- Jun 20, 2010
- 2,864
- 4,209
Sorry guys, got held up with a personal project, will get back to this soon
There is a pretty nice repo on github . It is easy to use and you can't do anything wrongcan you make a bot download tiktok videos without watermark and upload on youtube?
Pls William i need auto code for Ultramailer 3.5.. kindly assist me . thanksCan you wirte a bot for Auto comment Blogger?Thank you bro. Hope see your code soon
Hey this is great, i need this too, thank youCan you wirte a bot for Auto comment Blogger?Thank you bro. Hope see your code soon
i appreciate the man effort to challenge himself and code for free, i just publishing this kind of bot in my github but i use tor browser instead to change ip.Hi! I'm unsure if this is python related/possible, but I'm essentially looking for an app or something I can run on a server that will utilize rotating proxies, to call the "chg IP" API, and use each new IP to visit a specific website for about 30-60seconds, then change again. And do this continuously without my intervention. Thanks in advance! I'd be willing to pay even.
import random
import numpy as np
from stem import Signal
from stem.control import Controller
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
import os
import time
from fake_useragent import UserAgent
useragent = UserAgent()
def switchIP():
#Channel Traffic from specific country or countries
#controller.set_options({'ExitNodes': '{uk},{us},{ru}'})
with Controller.from_port(port = 9151) as controller:
controller.authenticate()
controller.signal(Signal.NEWNYM)
def getproxy(portname,portp):
torexe = os.popen(r'c:\\Users\\user\\Desktop\\Tor Browser\\Browser\\TorBrowser\\Tor\\tor.exe')
profile = FirefoxProfile(r'C:\\Users\\user\\Desktop\\Tor Browser\\Browser\\TorBrowser\\Data\\Browser\\profile.default')
profile.set_preference("general.useragent.override", useragent.random)
profile.set_preference('network.proxy.type', 1)
profile.set_preference('network.proxy.socks', portname)
profile.set_preference('network.proxy.socks_port',int(portp))
profile.set_preference("network.proxy.socks_remote_dns", True)
profile.set_preference( "javascript.enabled", False)
profile.update_preferences()
return webdriver.Firefox(firefox_profile= profile)
def main():
clicks = random.randint(75,382)
try:
for i in range(clicks):
try:
delays = random.randint(1,45)
delay = np.random.choice(delays)
tmemail = random.randint(3,6)
driver = getproxy("127.0.0.1", 9150)
driver.get('your_website')
time.sleep(tmemail)
driver.find_element_by_link_text('your_link').click()
time.sleep(tmemail)
switchIP()
driver.quit()
time.sleep(delay)
except:
switchIP()
driver.quit()
time.sleep(delay)
continue
except:
time.sleep(30)
switchIP()
driver.quit()
if __name__ == "__main__":
main()
UdemyIf I want to start learning Python, where do you recommend I start from?