Show HN: Extract a unique CSS selector for any element on any page
1–10 of 10 posts
Re: Show HN: Extract a unique CSS selector for any element on any page
#2I've got to admit, I'm not sure I'd use this over SG since SG can nail down to a single element if you use it the right way, but it's great to see more tools of this nature, as it can really help when doing ad-hoc scraping.
Re: Show HN: Extract a unique CSS selector for any element on any page
#3At first glance, I thought this was going to be like Selector Gadget ( http://selectorgadget.com/ ), a tool I've used for years to get CSS selectors for elements on pages. But it gives you a unique selector for the unique element you click, which adds a different angle. I've got to admit, I'm not sure I'd use this over SG since SG can nail down to a single element if you use it the right way, but it's great to see mo…
Re: Show HN: Extract a unique CSS selector for any element on any page
#4Re: Show HN: Extract a unique CSS selector for any element on any page
#5I don't get it - I do this in Chrome tools > magnifying glass > right click > Copy CSS path. What does it solve this ?
There is also the problem of using ids. For example in Flutter I may want to auto tweet out the top post in a list of posts on a blog. If the posts have individual ids, and the CSS selector includes them, every time Flutter tries to scrape new content it will get the same post. I want the unique selector for the page element. i.e. the first post in the list.
Re: Show HN: Extract a unique CSS selector for any element on any page
#6Re: Show HN: Extract a unique CSS selector for any element on any page
#7Just tested it. I can't leave the Flutter Selector once I open it. Clicking OK or Cancel keeps it. I've tried ESC as well but the selector is still present until I reload the page
Re: Show HN: Extract a unique CSS selector for any element on any page
#8I don't get it - I do this in Chrome tools > magnifying glass > right click > Copy CSS path. What does it solve this ?
I guess having it directly on right click or in view would be useful sometimes.
Re: Show HN: Extract a unique CSS selector for any element on any page
#9Just tested it. I can't leave the Flutter Selector once I open it. Clicking OK or Cancel keeps it. I've tried ESC as well but the selector is still present until I reload the page
There should be a red 'Close' button in the bottom right-hand corner of your screen. I'll add the option to use ESC as well.