Skip to content

Commit 27f9f9a

Browse files
authored
feat: add cnet section and sub (#235)
1 parent 721dc23 commit 27f9f9a

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
channel:
3+
url: https://www.cnet.com/%<section>s/%<sub>s/
4+
language: en
5+
ttl: 360
6+
time_zone: UTC
7+
selectors:
8+
items:
9+
selector: ".c-storiesNeonHighlightsCard"
10+
title:
11+
selector: ".g-text-bold"
12+
link:
13+
selector: a:first
14+
extractor: href
15+
description:
16+
selector: span
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe 'cnet.com/section_sub.yml' do
4+
include_examples 'config.yml', 'cnet.com/section_sub.yml', section: 'culture', sub: 'internet'
5+
end

0 commit comments

Comments
 (0)