Go to file
2024-02-08 11:10:15 +08:00
.github/workflows Update main.yml 2023-12-25 09:36:52 +08:00
addons Create 018#zotero-excalidraw.json 2024-02-08 11:09:00 +08:00
.gitignore parse id from xpi 2023-11-11 13:30:15 +08:00
addon_keys.py update releaseData to releaseDate 2023-12-18 22:05:16 +08:00
fallback_infos.py 添加忽略字段 2023-12-14 22:06:28 +08:00
LICENSE init 2023-10-19 21:35:29 +08:00
main.py use repo name if xpi parsed name not found 2024-02-02 19:58:36 +08:00
moz_addons.py 对齐zotero-chinese格式,去掉release内xpiInfo字段。 2023-11-29 21:41:24 +08:00
README.md Update README.md 2023-12-25 09:37:22 +08:00
requirements.txt parse id from xpi 2023-11-11 13:30:15 +08:00

Zotero Addons Scraper

GitHub Build Status GitHub Last Commit Time jsdelivr hits

This is a script repository for scraping Zotero add-ons, intended for use with Zotero Addons.

Switch to addon-scraper source in Zotero Addons to use this repository.

Workflows

This repository utilizes GitHub Actions workflow for automation. including the following steps:

  • Retrieve Zotero add-on information specified in addons folder
  • Parse add-on information into JSON data
  • Publish the JSON data to the publish branch and the latest release

Contributing

Adding a new add-on entry {owner}#{repo}.json in the addons folder.
e.g.,

{
  "name": "Zotero Addons",
  "repo": "syt2/zotero-addons",
  "releases": [
    {   
      "targetZoteroVersion": "7",
      "tagName": "latest"
    },
    {
      "targetZoteroVersion": "6", 
      "tagName": "0.6.0-6"
    }
  ]
}
  • name(optional):
    Name of the add-on.
    If not provided, name will be extracted automatically from the XPI provided in release.
  • repo(required):
    GitHub repository of the plugin.
  • releases(required):
    XPI releases information of the Add-on.
    Provide at least one valid release information.
  • targetZoteroVersion(required):
    Zotero compatibility version for the add-on. Supports "6" or "7".
  • tagName(required): The release tag name in the GitHub repository.
    Supports "latest", "pre" or a specified tag name.
    If "latest" or "pre" is used, script will automatically retrieve the latest release tag.

Usage

  1. fork this repository
  2. Enable actions and scheduled workflow in Actions page of forked repository
  3. Add a Deploy key in forked repository and named it with ACTIONS_DEPLOY_KEY

Generated Format

The output format for add-on information follows the format specified in zotero-chinese/zotero-plugins.