DEV Community

VISHNU VARDHAN REDDY
VISHNU VARDHAN REDDY

Posted on

ScrapeSome: Effortless Web Scraping for JavaScript-Heavy Sites

Image description>
Tired of 403s and blank pages when scraping JavaScript-heavy websites?

You're not alone β€” and that's exactly why I built ScrapeSome.

πŸš€ What Is ScrapeSome?

ScrapeSome is a developer-friendly Python library that makes scraping modern websites simple β€” even the ones loaded with dynamic JavaScript or tough anti-bot protections.

It combines:

  • βœ… Sync and async support
  • 🎭 Automatic Playwright fallback for headless browser rendering
  • πŸ’» CLI support: scrape straight from your terminal
  • πŸ›‘οΈ Built-in error handling, timeouts, and retries
  • πŸ“„ Output formats: HTML, Markdown, text, or JSON

It’s fast, lightweight, and requires zero boilerplate.

πŸ”§ Why I Built It

I kept hitting walls on scraping projects:

  • Pages rendered everything with JavaScript
  • APIs were locked down or undocumented
  • requests,Scrapy failed or got 403 request error
  • Setting up full browser automation felt too heavy for small jobs

So I built ScrapeSome β€” to fill the gap between requests and full-on headless scraping frameworks.

βš™οΈ Quick Example

from scrapesome import sync_scraper

html = sync_scraper("https://example.com")

html = sync_scraper(
    "https://example.com",
    force_playwright=True,
    output_format="markdown",
    user_agents=["Mozilla/5.0"]
)
Enter fullscreen mode Exit fullscreen mode

πŸ’» CLI usage

scrapesome scrape --url https://example.com --output-format json
Enter fullscreen mode Exit fullscreen mode

You can even configure behavior with environment variables β€” great for scripting.

πŸ“¦ Install It

pip install scrapesome
Enter fullscreen mode Exit fullscreen mode

πŸ§ͺ Try it out on PyPI:

πŸ‘‰ https://pypi.org/project/scrapesome/

πŸ”— Links

πŸ™Œ Feedback Welcome

This is an early release, and I’d love to hear your thoughts.

Try it, break it, file issues, suggest features β€” or just ⭐ the repo if you like the idea!

Happy scraping! πŸ•·οΈ

β€” Vishnu Vardhan Reddy

Top comments (0)