HTML CSS Selector Extractor

Query and scrape HTML with CSS selectors, extract text and attributes.

Test CSS selectors against any HTML and extract exactly what you need. Query elements, pull attributes and text content, pretty-print output, and strip unwanted nodes — a browser-based alternative to htmlq, pup, xq, and BeautifulSoup with zero install.

  • Test CSS selectors against pasted HTML
  • Extract attributes and text content
  • Pretty-print and clean up output
  • Strip elements you do not want
  • Alternative to htmlq, pup, xq, and BeautifulSoup
chayprabs/html-css-selector-extractor-scraper-playgroundFull source code, issues, and releasesOpen →

Spotted a bug or have an idea?

This tool is built in the open and shaped by feedback. If something feels off — or you want a feature — I read every message.