rules.go 574 B

12345678910111213141516
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package scraper
  5. // List of predefined scraper rules (alphabetically sorted)
  6. // domain => CSS selectors
  7. var predefinedRules = map[string]string{
  8. "lemonde.fr": "div#articleBody",
  9. "lesjoiesducode.fr": ".blog-post-content img",
  10. "linux.com": "div.content, div[property]",
  11. "opensource.com": "div[property]",
  12. "phoronix.com": "div.content",
  13. "techcrunch.com": "div.article-entry",
  14. }