Skip to content

Commit

Permalink
feat: add cnet section and sub (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
gildesmarais authored Aug 16, 2024
1 parent 721dc23 commit 27f9f9a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/html2rss/configs/cnet.com/section_sub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
channel:
url: https://www.cnet.com/%<section>s/%<sub>s/
language: en
ttl: 360
time_zone: UTC
selectors:
items:
selector: ".c-storiesNeonHighlightsCard"
title:
selector: ".g-text-bold"
link:
selector: a:first
extractor: href
description:
selector: span
5 changes: 5 additions & 0 deletions spec/html2rss/configs/cnet.com/section_sub.yml_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

RSpec.describe 'cnet.com/section_sub.yml' do
include_examples 'config.yml', 'cnet.com/section_sub.yml', section: 'culture', sub: 'internet'
end

0 comments on commit 27f9f9a

Please sign in to comment.