Skip to main content

connect feishu content franchise

Project description

飞书文档内容连接器

install:

pip install feishuconnector

code usage:

from feishuconnector import FeishuConnector

fc = FeishuConnector()
fc.init("user***", "pass***)

实际使用的流程:

在多维表格的编辑页面,url一般是这样的:https://puyuan.feishu.cn/wiki/wikcnlBvPJ8xoTSfVtQwGBkrUWc?table=tblGZPQYMzrwRMeo&view=vewWhDJdAM, 注意提取其中 node_token=wikcnlBvPJ8xoTSfVtQwGBkrUWc, table_id=tblGZPQYMzrwRMeo

调用如下:

from feishuconnector import FeishuConnector

fc = FeishuConnector()
fc.init("user***", "pass***)
# 获取多维表格全部记录
records = fc.get_bitable_records('wikcnlBvPJ8xoTSfVtQwGBkrUWc', 'tblGZPQYMzrwRMeo')

# 在多维表格中插入记录
fc.insert_bitable_records('wikcnlBvPJ8xoTSfVtQwGBkrUWc', 'tblGZPQYMzrwRMeo', records)

# 获取普通表格某range的全部数据,values is a list(rows) of list(cols)
values = fc.get_sheet_data("wikcnQgBgZCWUx7w6ZpzzLXX3bc", "e792af")

# 在普通表格中追加数据
fc.append_sheet_data("wikcnQgBgZCWUx7w6ZpzzLXX3bc", "e792af", values)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feishuconnector-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file feishuconnector-0.1.2.tar.gz.

File metadata

  • Download URL: feishuconnector-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6

File hashes

Hashes for feishuconnector-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cca05b3c0e40297bd42cf4ceb2d3f404938ad7c67e164e569ce55b52db8d5cc5
MD5 4281c500b721a3b3d1186e1be7036942
BLAKE2b-256 1a5e23d09c47994bb29acbf8c305d74e6c8dbdd5038b5e8a1e4aa61403aca0a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page