Skip to content

Commit b719b8e

Browse files
committed
Use new csv-diff --extra feature
Refs #6, refs simonw/csv-diff#38
1 parent 35aa3c6 commit b719b8e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/scrape.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ jobs:
4040
run: |
4141
echo "$(date -u)" > /tmp/commit.txt
4242
echo "" >> /tmp/commit.txt
43-
csv-diff simonwillison-net.json simonwillison-net-new.json --key id --format json >> /tmp/commit.txt
43+
csv-diff simonwillison-net.json simonwillison-net-new.json --key id --format json \
44+
--extra latest 'https://news.ycombinator.com/latest?id={id}' >> /tmp/commit.txt
4445
echo "" >> /tmp/commit.txt
45-
csv-diff datasette-io.json datasette-io-new.json --key id --format json >> /tmp/commit.txt
46+
csv-diff datasette-io.json datasette-io-new.json --key id --format json \
47+
--extra latest 'https://news.ycombinator.com/latest?id={id}' >> /tmp/commit.txt
4648
- name: Update data
4749
run: |
4850
mv simonwillison-net-new.json simonwillison-net.json

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
shot-scraper
2-
csv-diff
2+
csv-diff>=1.2

0 commit comments

Comments
 (0)