Skip to main content

Stealth-oriented utilities for web scraping with rotating user agents, proxies, and Selenium helpers.

Project description

Orb Weaver

Utilities for stealth-oriented web scraping with Selenium helpers, rotating headers, and proxy support.

Features

  • Selenium driver bootstrap via OrbDriver
  • Randomized user-agent and request headers
  • Proxy harvesting and validation utilities
  • Human-like browser interaction helpers (slow_type, random clicking, scroll, viewport changes)
  • Optional PIA VPN integration for IP rotation

Installation

From PyPI (after publish):

pip install orbweaver-tools

From source with Poetry:

poetry install

Quick Start

Build a Selenium driver

from orb.spinner.core.driver import OrbDriver

orb_driver = OrbDriver(use_pia=False)
driver = orb_driver.get_webdriver(url="https://example.com")

Send spoofed requests

from bs4 import BeautifulSoup
from orb.scraper.utils import spoof_request

response = spoof_request("https://example.com", use_proxies=False)
soup = BeautifulSoup(response.content, "html.parser")

Human-like interactions

from selenium.webdriver.common.by import By
from orb.spinner.utils import slow_type, human_clicking

input_box = driver.find_element(By.ID, "search")
slow_type(input_box, "hello world", send_keys=True)

button = driver.find_element(By.ID, "submit")
human_clicking(driver, button)

Development

Run tests:

poetry run pytest -q

Build package artifacts:

poetry build

Publish to PyPI

  1. Create an account on PyPI.
  2. Create an API token and configure Poetry credentials:
poetry config pypi-token.pypi <your-token>
  1. Publish:
poetry publish --build

License

MIT. See LICENSE.

Notes

Use these tools responsibly and only against systems where you have permission to automate or scrape.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbweaver_tools-1.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orbweaver_tools-1.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file orbweaver_tools-1.1.0.tar.gz.

File metadata

  • Download URL: orbweaver_tools-1.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for orbweaver_tools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0925dcdd95a3ab1379806e5b481f198a194124ddfc6a883ca52163b4d628f535
MD5 902cfbd52918388cd927d1d86bfaf874
BLAKE2b-256 9e9fae36fc16055afda0200034afb942abd9072a673958ace5f186d579b9ed08

See more details on using hashes here.

File details

Details for the file orbweaver_tools-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: orbweaver_tools-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for orbweaver_tools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9d2a8b48d0652dc68d32374f32fe41e6d10588e6b27b83d8d72ca12184aa4a
MD5 e143ac3954b49f3a55679c901fa2bdba
BLAKE2b-256 a339e2fa1a51b741e7d79bf9ca589d3580218be4eb75b5e471f326744aa5a13b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page