Skip to main content

Smart web scraper that abstracts away complexity - from simple sites to highly protected ones.

Project description

IntelliScraper

A powerful, anti-bot detection web scraping solution built with Playwright, designed for scraping protected sites like Himalayas Jobs and other platforms that require authentication. Features session management, proxy support, and advanced HTML parsing capabilities.

Python Version License Status

✨ Features

  • 🔐 Session Management: Capture and reuse authentication sessions with cookies, local storage, and browser fingerprints
  • 🛡️ Anti-Detection: Advanced techniques to prevent bot detection
  • 🌐 Proxy Support: Integrated support for Bright Data and custom proxy solutions
  • 📝 HTML Parsing: Extract text, links, and convert to Markdown format (including LLM-optimized output)
  • 🎯 CLI Tool: Easy-to-use command-line interface for session generation
  • ⚡ Playwright-Powered: Built on robust Playwright automation framework

🚀 Quick Start

Installation

pip install intelliscraper

Basic Scraping (No Authentication)

from intelliscraper import Scraper, ScrapStatus

# Simple scraping without authentication
scraper = Scraper()
response = scraper.scrape("https://example.com")

if response.status == ScrapStatus.COMPLETED:
    print(response.scrap_html_content)

Creating Session Data

Use the CLI tool to create session data for authenticated scraping. The tool will open a browser where you can manually log in:

intelliscraper-session --url "https://himalayas.app" --site "himalayas" --output "./himalayas_session.json"

How it works:

  1. 🌐 Opens browser with the specified URL
  2. 🔐 You manually log in with your credentials
  3. ⏎ Press Enter after successful login
  4. 💾 Session data (cookies, storage, fingerprints) saved to JSON file

Authenticated Scraping with Session

import json
from intelliscraper import Scraper, Session, ScrapStatus

# Load session data
with open("himalayas_session.json") as f:
    session = Session(**json.load(f))

# Scrape with authentication
scraper = Scraper(session_data=session)
response = scraper.scrape("https://himalayas.app/jobs/python?experience=entry-level%2Cmid-level")

if response.status == ScrapStatus.COMPLETED:
    print("Successfully scraped authenticated page!")
    print(response.scrap_html_content)

📝 HTML Parsing

Parse scraped content to extract text, links, and markdown:

from intelliscraper import Scraper, ScrapStatus, HTMLParser

scraper = Scraper()
response = scraper.scrape("https://example.com")

if response.status == ScrapStatus.COMPLETED:
    # Initialize parser
    parser = HTMLParser(
        url=response.scrape_request.url,
        html=response.scrap_html_content
    )
    
    # Extract different formats
    print(parser.text)              # Plain text
    print(parser.links)             # All links (normalized URLs)
    print(parser.markdown)          # Full markdown
    print(parser.markdown_for_llm)  # Clean markdown for AI (removes nav, footer, ads)

The markdown_for_llm property is optimized for AI processing - it removes navigation, footers, advertisements, and forms, keeping only useful content.

🌐 Proxy Support

IntelliScraper supports proxy configurations including Bright Data and custom solutions:

from intelliscraper import Scraper, ProxyConfig

proxy = ProxyConfig(
    url="http://brd.superproxy.io:22225",
    username="your-username",
    password="your-password"
)

scraper = Scraper(proxy=proxy)
response = scraper.scrape("https://example.com")

📁 More examples including proxy configurations, and advanced usage can be found in the examples/ folder.

📋 Requirements

  • Python 3.12+
  • Playwright
  • Compatible with Windows, macOS, and Linux

🗺️ Roadmap

  • ✅ Session management with CLI tool
  • ✅ Proxy support (Bright Data)
  • ✅ HTML parsing and Markdown conversion
  • ✅ Anti-detection features
  • 🔄 PyPI package (Coming soon)
  • 🔄 Async scraping support
  • 🔄 Web crawler
  • 🔄 AI integration

📄 License

This project is licensed under the MIT License.

📧 Support

For issues, questions, or contributions, please visit our GitHub repository's issues page.


Note: This project is under active development. The package will be available on PyPI in the coming weeks.

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

intelliscraper_core-0.1.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

intelliscraper_core-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file intelliscraper_core-0.1.0.tar.gz.

File metadata

  • Download URL: intelliscraper_core-0.1.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for intelliscraper_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd03dfcd0175ff618021fc96ad0f01d20c465060aba4350a800b1b9a39c73789
MD5 efeb1c6ad9fc4702666294d66444e488
BLAKE2b-256 759613896373d520e443531e90660edfebad5658b7455b173200a73bed4378ac

See more details on using hashes here.

File details

Details for the file intelliscraper_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for intelliscraper_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce23892fb51f44d72b4433d256e9eac197018f985c258bf8e723b1bf2d5c1be1
MD5 1dfe6b969762121f29dbf0943c006757
BLAKE2b-256 74c2c00dbf5668fbeb32085f36c3455c83b9363b39fa23369d9318483a6eaa1c

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