TipJar

  • Next!

    Custom Scrapers Posted by Brett Terpstra on March 1, 2010


    n : a[class^=next],a[rel=next],a:contains("Next"),a:contains("Older"),a:contains("More")

    A work in progress, but working on many sites. Just type ?n on a results page or listing, and it looks for the “Next” button (or “older posts”, “more results”, etc.).

     

Comments

  • n2j3 8:57 pm on March 1, 2010 | #

    thanks :D looks really handy.

  • Sameer 4:05 am on March 2, 2010 | #

    Interesting idea. Sorry about the overflow, I need to fix the formatting for code blocks.

  • Brett Terpstra 4:09 am on March 2, 2010 | #

    If you’re feeling crazy, you could always steal my code here :) .

  • Hen Asraf 2:41 pm on March 3, 2010 | #

    Awesome, good approach! :)

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

    likey likey

  • Jon R 2:09 am on July 24, 2010 | #

    Great, but doesn’t work on pages like Reddit that have the “next” link with a lowercase “n.” Fixed by adding “a:contains(“next”)

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.