0.2.5 • Published 7 years ago
reporter-cli v0.2.5
npm i -g reporter-cli
-- site
Pagination url
example: https://news.ycombinator.com/news?p=
-- list
list element selector
-- link
link element selector
-- title
title element selector
-- limit
page limit number
-- file
output filename
-- start
crawl start page
-- end
crawl end page
-- special
<key>: <selector>*<attribute>, <key>: <selector>*<attribute>..
--special 'username: >.hnuser*text, score: >.score*text'
^
parent element
<
previous sibling element
>
next sibling element
-- heartbeat.js
function to run after each request
example:
module.exports = item => {
console.log(item.url, item.title)
}
demo
reporter --site https://news.ycombinator.com/news?p= \
--list .athing \
--link .storylink \
--title .storylink \
--limit 10 \
--special 'username: >.hnuser*text, score: >.score*text'
0.2.5
7 years ago
0.2.4
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago