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
Release history Release notifications | RSS feed
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.6.tar.gz
(7.4 kB
view details)
File details
Details for the file feishuconnector-0.1.6.tar.gz
.
File metadata
- Download URL: feishuconnector-0.1.6.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6fef3baa617af5931ca845454f14a596668adf666d0e09b76cf256386f05a1 |
|
MD5 | 0d3c8094b5088d0727ac77c01dd5082b |
|
BLAKE2b-256 | 7729fbffe727ba3b1e9bd5b3b624fb921d5e6105d9e5b74c0ab6d9b16b7374f4 |