This script automates website visits using Tor for anonymity, random user agents for fingerprint spoofing, and human-like behavior such as scrolling, clicking, and waiting.
✔ Multi-threaded browsing – Multiple sites visited at once.
✔ Tor IP Rotation – Each visit gets a new identity.
✔ Randomized User Agents – Mimics real users from various devices.
✔ Scrolling & Clicks – Looks like real human browsing.
✔ Cookie Consent Handling – Accepts cookies automatically.
✔ Runs Continuously – Loops indefinitely for automated visits.
Make sure you have Python 3.8+ installed. Then, install dependencies:
pip install playwright requests stem⚡ Initialize Playwright Browsers:
playwright installsudo apt update && sudo apt install tor- Download Tor Browser from: https://www.torproject.org/download/
- Enable ControlPort 9051 in
torrcconfiguration file.
Run:
tor &Or on Windows, open Tor Browser before running the script.
- Add URLs to
urls.txt(one per line). - Run the script:
python script.py- Enter number of threads when prompted.
- Fetches a URL from
urls.txt - Changes Tor IP before visiting the site.
- Uses a random User-Agent for each visit.
- Loads the website in Playwright-controlled browser.
- Accepts cookies if a consent popup appears.
- Scrolls for 40-50 seconds before interacting.
- Clicks random links, then scrolls for 5-10 sec after clicks.
- Waits 90-150 seconds before closing the browser.
- Repeats with a new IP
- Change scroll behavior in
scroll_page() - Modify time delays in
time.sleep() - Adjust random clicks in
random_clicks()
⚠ Requires Tor running in the background.
⚠ Websites with strong bot detection may still block visits.
⚠ Performance depends on system and internet speed.