TipJar

  • Level-specific headline selectors

    Custom Scrapers Posted by Brett Terpstra on March 2, 2010


    Ok, these are stupid, but I’m finding them useful (because the fewer keystrokes, the happier I am).


    ?2 : h2
    ?3 : h3
    ?4 : h4

    On a well marked-up blog page, these will usually help you quickly narrow down the search to just article headlines, skipping sub-headlines and sidebars. Not perfect, but a quick solution for new pages you probably won’t be back to.

     

Comments

  • Ankit 12:40 am on March 6, 2010 | #

    This is really useful. I added ?1 for h1 as well as quite a few blogs unfortunately do make use of h1’s for post headings.

Leave a Comment

You'll need to login to post a comment. It's easy, you can use your Facebook, Twitter, Google or OpenID credentials.