#奖励 #下载 #账户 #命令行工具 #日常 #下载器 #收据

app everyday-rewards-receipts

用于下载您日常奖励账户中所有收据的命令行工具

2 个版本

0.1.1 2024年5月24日
0.1.0 2023年10月4日

#431Web编程

Download history 126/week @ 2024-05-20 3/week @ 2024-06-03 3/week @ 2024-06-10

87 每月下载量

MIT 许可证

18KB
328

everyday-rewards-receipts

一个简单的工具,用于下载日常奖励的所有收据,以便稍后处理。

此工具将下载pdf收据以及存储交易的API响应的json。
此附加文件很有用,因为它包含了收据的详细列表 - 消除了从pdf中提取文本的需要。

安装

如果您是Rust开发者,您可以从crates.io安装

cargo安装 everyday-rewards-receipts

用法

> everyday-rewards-receipts --help
Usage: everyday-rewards-receipts [OPTIONS] --token <TOKEN>

Options:
      --token <TOKEN>  
  -o, --output <PATH>  [default: ./receipts]
  -h, --help           Print help information
  -V, --version        Print version information

检索您的认证令牌

  1. 添加以下书签
    javascript:(function(){alert("Access Token: " + JSON.parse(sessionStorage.authStatusData).access_token)})();
    
  2. 前往 日常奖励
  3. 登录
  4. 点击书签并记录显示的值

输出结构

output/
    # Derived from the Activity feed in everyday rewards
    This_Month/
        id0.pdf
        id0.json
        ...
    August_2021/
        id1.pdf
        id1.json
        ...
    August_2022/
        id2.pdf
        id2.json
        ...
    ...

许可

MIT License

Copyright (c) [2022] [Thomas Fowler]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

依赖项

~4–19MB
~250K SLoC