heise.de.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. return array(
  3. 'grabber' => array(
  4. '%^/tp.*%' => array(
  5. 'test_url' => 'https://www.heise.de/tp/features/Macrons-Vermoegenssteuer-Der-Staat-verzichtet-auf-3-2-Milliarden-3863931.html',
  6. 'body' => array(
  7. '//main/article'
  8. ),
  9. 'strip' => array(
  10. '//header',
  11. '//aside',
  12. '//nav[@class="pre-akwa-toc"]',
  13. '//*[@class="seite_zurueck"]',
  14. '//*[@class="pagination"]',
  15. '//a[@class="kommentare_lesen_link"]',
  16. '//div[contains(@class, "shariff")]',
  17. '//a[@class="beitragsfooter_permalink"]',
  18. '//a[@class="beitragsfooter_fehlermelden"]',
  19. '//a[@class="beitragsfooter_printversion"]'
  20. ),
  21. 'next_page' => array(
  22. '//a[@class="seite_weiter"]'
  23. ),
  24. ),
  25. '%^/newsticker/meldung.*%' => array(
  26. 'test_url' => 'https://www.heise.de/newsticker/meldung/DragonFly-BSD-5-0-mit-experimentellem-HAMMER2-veroeffentlicht-3864731.html',
  27. 'body' => array(
  28. '//div[@class="article-content"]',
  29. ),
  30. 'strip' => array(
  31. '//*[contains(@class, "gallery")]',
  32. '//*[contains(@class, "video")]',
  33. ),
  34. ),
  35. '%^/autos/artikel.*%' => array(
  36. 'test_url' => 'https://www.heise.de/autos/artikel/Bericht-Mazda-baut-Range-Extender-mit-Wankelmotor-3864760.html',
  37. 'body' => array(
  38. '//section[@id="artikel_text"]'
  39. ),
  40. 'strip' => array(
  41. '//p[@id="content_foren"]',
  42. '//div[contains(@class, "shariff")]',
  43. '//p[@class="permalink"]',
  44. '//p[@class="printversion"]'
  45. ),
  46. ),
  47. '%^/foto/meldung.*%' => array(
  48. 'test_url' => 'https://www.heise.de/foto/meldung/Wildlife-Fotograf-des-Jahres-Gewinnerbild-zeigt-getoetetes-Nashorn-3864311.html',
  49. 'body' => array(
  50. '//div[@class="article-content"]'
  51. ),
  52. ),
  53. '%^/ct.*%' => array(
  54. 'test_url' => 'https://www.heise.de/ct/artikel/Google-Pixel-2-und-Pixel-2-XL-im-Test-3863842.html',
  55. 'body' => array(
  56. '//main/div[1]/div[1]/section'
  57. ),
  58. 'strip' => array(
  59. '//header'
  60. )
  61. ),
  62. '%^/developer.*%' => array(
  63. 'test_url' => 'https://www.heise.de/developer/meldung/Container-Docker-unterstuetzt-Kubernetes-3863625.html',
  64. 'body' => array(
  65. '//div[@class="article-content"]'
  66. )
  67. ),
  68. '%.*%' => array(
  69. 'test_url' => 'https://www.heise.de/mac-and-i/meldung/iOS-App-Nude-findet-mittels-ML-Nacktbilder-und-versteckt-sie-3864217.html',
  70. 'body' => array(
  71. '//article/div[@class="meldung_wrapper"]',
  72. ),
  73. 'strip' => array(
  74. '//*[contains(@class, "gallery")]',
  75. '//*[contains(@class, "video")]',
  76. ),
  77. ),
  78. ),
  79. );