Catalog npm
Back to packageRELEASE DETAILS

1.2.1

npm

75_action

一个自动抓取奇舞周刊全部文章的脚本,支持 GitHub Action 自动抓取和 CLI 工具使用

75_action75_weeklycliweekly.75.team
Published16 Sept 2023
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

75_action

TEST FETCH NPM downloads

这是一个自动抓取奇舞周刊全部文章的脚本,支持 GitHub Action 自动抓取和 CLI 工具使用

自动抓取为每天0/8/16点执行,抓取完成后生成的文章数据存到了 Action 的 artifact 中,下载得到 artifact.zip 解压后的 data.json 就是抓取的数据

CLI 使用

抓取到的数据本地缓存在 ~/.75_action/.data.json 中,缓存有效期24h

1.随机返回一篇文章链接

npx 75_action random

2.随机返回n篇文章链接

npx 75_action random n // n 为任意大于0的数(当总文章数小于 n 时返回全部文章链接)

3.手动更新文章数据

强制不走本地缓存,抓取数据成功后会写入本地缓存

npx 75_action fetch

4.查看 n 个期刊的全部文章

npx 75_action issue n // n 为任意大于0的数

5.根据关键词搜索

根据文章标题、文章简介、文章链接进行模糊搜索,同时也可根据文章日期进行模糊匹配;例如搜索 2022 年的文章,传参 -t "2022",搜索 2022-01 的文章,传参 -t "2022-01"

npx 75_action search -k <keyword> -t <date>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
cheerio
Environment
{
  "local_name": "cheerio",
  "alias": false,
  "peer_metadata": null
}
^1.0.0-rc.10runtime
cli-progress
Environment
{
  "local_name": "cli-progress",
  "alias": false,
  "peer_metadata": null
}
^3.9.1runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^8.3.0runtime
mkdirp
Environment
{
  "local_name": "mkdirp",
  "alias": false,
  "peer_metadata": null
}
^1.0.4runtime
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
2runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-1wu0KrnLn8P/rrEJuRXWGzBH+eADs/D+trLWED7SvhXvU7Y0vWF0uq2pVxg+ic3YLm2rbplHBzRdh8mlwghbaQ==",
  "shasum": "c5ab699488d36975f48a551a75f75029b2aa354d",
  "tarball": "https://registry.npmjs.org/75_action/-/75_action-1.2.1.tgz",
  "fileCount": 9,
  "unpackedSize": 15230,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGSSJFMxjSOZvBF0rV/PjDj2xVHXwUDuOi3EQ0GSqrgoAiBxbKu640IqdXIBotxcDjPr8y3wTXwUFDHM7D7cIzauAA=="
    }
  ]
}

Repository

PENDING
johniexu/75_action

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2b3f8c03ae025d078062c83cc0ca2e3f868f91f3107e8eb52d6a99c838ff9656

Other collected versions

1.2.019 Mar1.1.012 Mar1.0.126 Nov1.0.023 NovView all collected versions →