pup is a command line tool for processing HTML. It reads from stdin, prints to stdout, and allows the user to filter parts of the page using CSS selectors. Inspired by jq, pup aims to be a fast and flexible way of exploring HTML from the terminal. If you have Go installed on your computer just run go get. If you're on OS X, use Homebrew to install (no Go required). By default pup will fill in missing tags and properly indent the page. CSS selectors have a group of specifiers called "pseudo classes" which are pretty cool. pup implements a majority of the relevant ones them. When combining selectors, the HTML nodes selected by the previous selector will be passed to the next ones. Non-HTML selectors which effect the output type are implemented as functions which can be provided as a final argument. Print the values of all attributes with a given key from all selected nodes.

Features

  • Clean and indent
  • Filter by tag
  • Filter by id
  • Filter by attribute
  • Pseudo Classes
  • Print HTML as JSON

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow pup

pup Web Site

Other Useful Business Software
Workable Hiring Software - Hire The Best People, Fast Icon
Workable Hiring Software - Hire The Best People, Fast

Find the best candidates with the best recruitment software

Workable is the preferred software for today's recruiting industry and HR teams, trusted by over 6,000 companies to streamline their hiring processes. Finding the right person for the job has never been easier—users now possess the ability to manage multiple hiring pipelines at once, from posting a job to sourcing candidates. Workable is also seamlessly integrated between desktop and mobile, allowing admins full control and flexibility all in the ATS without needing additional software.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pup!

Additional Project Details

Operating Systems

Mac, Windows

Registered

2021-09-03