{"repo":"paceaux/selector-finder","free":true,"listed":false,"github":"https://github.com/paceaux/selector-finder","clone":"git clone https://github.com/paceaux/selector-finder.git","description":"Find a CSS selector on a public site","language":"JavaScript","stars":26,"topics":["css","javascript","nodejs","selector-finder","screenshots","crawler"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Selector Hound: sniff out CSS Selectors on a site SelectorHound lets you find CSS selectors on a public or local site. Rename, refactor, and delete unused CSS with a bloodhound on your side. A sitemap or a site URL is enough to get started. Provide a single CSS selector, a comma separated string of selectors, or even a stylesheet. Pages with zero matches aren't put in the results. Pages with at least one match are in the result, and you find out which CSS selectors aren't used. (That's right, it's a selector finder and ... \"not founder\"). Optionally take a screenshot of the elements (though it may hurt performance). Pages not showing up that should? Check the log.txt for any issues. Installation Prerequisites - Node LTS (as of August 2024, Node 20.16.0) Some possible Puppeteer setup for Mac Users If you want to use the -d or -c ( --isSpa and --takeScreenshots ) options, this requires Puppeteer which in turn requires Chromium. You may (or may not) need PUPPETEER SKIP CHROMIUM DOWNLOAD=true and PUPPETEER EXECUTABLE PATH environment variables set. They were necessary for older versions of Puppeteer and seem to be unnecessary for new ones. If you're having issues, run printenv in your terminal to see if those variables are set. If they are, you may need to unset them with unset PUPPETEER SKIP CHROMIUM DOWNLOAD and unset PUPPETEER EXECUTABLE PATH . Then source /.bashrc or source /.zshrc to be sure, and run printenv once again. But if they aren't set, you may need to do this. After","default_branch":null,"files":null,"tree":[],"storefront":"/r/paceaux","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paceaux/selector-finder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}