Glanceway Glanceway
جميع المصادر

财联社电报

المالية

财联社电报快讯

@codytseng #finance #news #chinese #market

Install and configure this source

  1. Install Glanceway and open it on your Mac before using the install link above.
  2. Choose Install in Glanceway. If the browser cannot open the app, download the .gwsrc file and import it through source management.
  3. Complete the required fields below, save, and choose a refresh interval. Check the source after its first successful fetch.

This version does not require configuration fields. Install it and allow the initial fetch to complete.

If items are missing

  • Verify the field names, list entries, and credentials against the current version’s configuration table. Sample values below are examples, not active credentials.
  • Check network access and upstream service availability. Authentication failures and rate limits can prevent a refresh; use a slower interval when the provider limits requests.
  • An empty result can also mean there are no matching items. Fetched content and update timing depend on the provider and source implementation.

الشيفرة المصدرية

id: codytseng/cls-telegraph
version: 1.1.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
  - finance
  - news
  - chinese
  - market
module.exports = async (api) => {
  async function fetchData() {
    const res = await api.fetch(
      "https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
      {
        headers: { Referer: "https://www.cls.cn/" },
      },
    );
    if (!res.ok || !res.json) {
      throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
    }

    const items = res.json.data.roll_data
      .filter((item) => item.title)
      .map((item) => ({
        id: String(item.id),
        title: item.title,
        subtitle: item.content,
        url: item.shareurl,
        timestamp: item.ctime,
      }));

    api.emit(items);
  }

  await fetchData();

  return {
    refresh: fetchData,
  };
};
id: codytseng/cls-telegraph
version: 1.0.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
  - finance
  - news
  - chinese
  - market
module.exports = async (api) => {
  async function fetchData() {
    const res = await api.fetch(
      "https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
      {
        headers: { Referer: "https://www.cls.cn/" },
      },
    );
    if (!res.ok || !res.json) {
      throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
    }

    const items = res.json.data.roll_data
      .filter((item) => item.title)
      .map((item) => ({
        id: String(item.id),
        title: item.title,
        subtitle: item.brief,
        url: item.shareurl,
        timestamp: item.ctime,
      }));

    api.emit(items);
  }

  await fetchData();

  return {
    refresh: fetchData,
  };
};

مصادر ذات صلة