/test/hn.let

http://github.com/fizx/parsley · Unknown · 8 lines · 8 code · 0 blank · 0 comment · 0 complexity · d6d2be2767123b56fc80581f242c31fd MD5 · raw file

  1. {
  2. "articles": [ {
  3. "title": ".title a",
  4. "link": ".title a @href",
  5. "comment_count(.subtext a:nth-child(3))": "number(regex:match(., '[0-9]+', ''))",
  6. "comment_link": ".subtext a:nth-child(3) @href"
  7. } ]
  8. }