@duanz/pi-d-reach 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duanz/pi-d-reach",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "中英双语多通道检索 + 网页抓取 + 视频理解,pi 的搜索总入口(20+ 通道、额度记账、SSRF 防护、15 分钟缓存)",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -222,6 +222,11 @@ def _budget(d):
222
222
  if st == "ok" and name == "firecrawl":
223
223
  out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
224
224
  f",账期至 {str(v.get('period_end'))[:10]}")
225
+ elif st == "ok" and name == "brightdata":
226
+ _note = v.get("unit_note") or ""
227
+ out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
228
+ f",账期至 {str(v.get('period_end'))[:10]}"
229
+ + (f"({_note.split(';')[0]})" if _note else ""))
225
230
  elif st == "ok" and name == "tinyfish":
226
231
  out += f"\n {name}: 钱包 {v.get('balance')} {v.get('currency')}"
227
232
  elif st == "ok":
package/scripts/quota.py CHANGED
@@ -222,6 +222,11 @@ def _budget(d):
222
222
  if st == "ok" and name == "firecrawl":
223
223
  out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
224
224
  f",账期至 {str(v.get('period_end'))[:10]}")
225
+ elif st == "ok" and name == "brightdata":
226
+ _note = v.get("unit_note") or ""
227
+ out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
228
+ f",账期至 {str(v.get('period_end'))[:10]}"
229
+ + (f"({_note.split(';')[0]})" if _note else ""))
225
230
  elif st == "ok" and name == "tinyfish":
226
231
  out += f"\n {name}: 钱包 {v.get('balance')} {v.get('currency')}"
227
232
  elif st == "ok":