Hidemium Docs
  • 👋HIDEMIUM GUIDANCE FROM A-Z
  • FEATURES OF HIDEMIUM
    • NEW PROFILE
      • MAIN
      • PROXIES
      • COOKIES
      • HARDWARE
      • FONTS
      • BOOKMARKS
      • EXTENSIONS
      • AUTOFILL
      • OTHER CONFIG
    • PROFILES
      • Export All Data
      • Update Multiple
      • Quick Create
      • Change Proxy
      • Add Schedule
    • FOLDERS
    • PROXIES
  • Use Cases
    • 🤖API AUTOMATION V4
      • Remote profile
        • 1. Open profile
        • 2. Close profile
        • 3. Checking
      • Get profile
        • 1. List profile
        • 2. List config default
        • 3. List status
        • 4. List tag
        • 5. List version
        • 6. Get profile by uuid
        • 7. Get list folder
      • Interact profile
        • 1. Create profile by default
        • 2. Create profile customize
        • 3. Change fingerprint
        • 4. Update note
        • 5. Update name
        • 6. Sync tags
        • 7. Change status
        • 8. Delete profile
      • Proxy
        • 1. Update proxy
        • 2. update profile's proxy
      • Automation
        • List scripts
      • Campaign
        • Get campaign
        • Create Schedule
        • Get Schedule
        • Update schedule status
        • Delete schedule
        • Create campaign
        • Add profile to campaign
        • Update campaign input variable
        • Delete campaign
        • Delete All Profile In Campaign
      • Get user uuid
    • 🤖API AUTOMATION V2
      • Remote profile
        • 1. Open profile
        • 2. Close profile
        • 3. Checking
      • Get profile
        • 1. List profile
        • 2. List config default
        • 3. List status
        • 4. List tag
        • 5. List version
        • 6. Get profile by uuid
        • 7. Get list folder
      • Interact profile
        • 1. Create profile by default
        • 2. Create profile customize
        • 3. Change fingerprint
        • 4. Update note
        • 5. Update name
        • 6. Sync tags
        • 7. Change status
        • 8. Delete profile
      • Proxy
        • 1. Update proxy
        • 2. update profile's proxy
      • Automation
        • List scripts
  • AUTOMATION USER MANUAL
    • Navigator
      • New tab
      • Active tab
      • Close tab
      • Open url
      • Reload page
      • Screenshot
      • Switch Frame
      • Switch Extension popup
      • Go back
    • AI Agents
      • Hidemium AI
    • Mouse
      • Click
      • Press and hold
      • Mouse movement
      • Scroll
      • Drop-down selector
      • Mouse wheel
    • Keyboard
      • Press key
      • Type text
      • Send text to selector
    • Data
      • Element exists
      • Get URL
      • Get text
      • Get value
      • Get attribute value
      • Random
      • File upload
      • File choose event
      • Read file
      • Write file
      • HTTP
      • Set variable
      • Authenticator Code
      • Converting JSON
      • Download file
      • Extraction In Text
      • Set cookies
      • Get cookies
      • Clear cookies
      • Image Search
      • Set Data
      • Get Data
      • Spreadsheet
      • Spreadsheet V2
      • WriteSheet
      • Set user agent
      • Delete file
      • IMAP(Read mail)
    • Other
      • Pause
      • If
      • Eval
      • While
      • For
      • Add comment
      • Update profile
      • Stop loop
      • Add log
      • Run other script
      • Disconnection
      • Open Extension
      • Run command
    • Scripts
      • Robot cookie
      • Upload nhiều ảnh
      • Register Etsy
    • How to start script auto ?
  • HIDEMIUM 从 A 到 Z 的指南
  • HIDEMIUM 的功能
    • 新资料
      • 主要
      • 代理
      • COOKIES
      • 硬件
      • 字体
      • 书签
      • 扩展
      • 自动填充
      • 其他配置
    • 账号
      • 导出所有数据
      • 多个更新
      • 快速创建
      • 更改代理
      • 自动化
    • 文件夹
    • 代理
  • API自动化
    • 远程资料
      • 1.打开资料
      • 2. Close profile
      • 3. 检查
    • 获取账号资料
      • 1. 资料列表
      • 2. 配置默认值列表
      • 3. 状态列表
      • 4. 标签列表
      • 5. 版本列表
      • 6.获取uuid的资料
      • 7. 获取文件夹列表
    • 互动资料
      • 1.默认创建资料
      • 2. 创建自定义资料
      • 3. 修改指纹
      • 4. 更新备注
      • 5. 更新名称
      • 6.同步标签
      • 7.修改状态
      • 8.删除资料
    • 代理
      • 1. 更新代理
      • 2. 更新资料的代理
    • 自动化
      • 脚本列表
  • 自动化用户手册
    • 调向器
      • 新标签页 (New tab)
      • 活动标签页 (Active tab)
      • 关闭标签页 (Close tab)
      • 打开 URL (Open URL)
      • 重新加载页面 (Reload page)
      • 截图 (Screenshot)
      • 切换框架 (Switch frame)
      • 切换扩展弹出窗口 (Switch Extension popup)
      • 返回 (Go back)
    • 鼠标
      • 单击 (Click)
      • 鼠标移动 (Mouse moverment)
      • 滚动 (Scroll)
      • 下拉选择 (Drop-down selector)
      • 鼠标滚轮 (Mouse wheel)
    • 键盘
      • 按键 (Press key)
      • 输入文字 (Type text)
      • 将文本发送到选择器 (Send text to selector)
    • 数据 (Data)
      • 元素存在 (Element exists)
      • 获取 URL (Get URL)
      • 获取文本 (Get text)
      • 获取值 (Get value)
      • 获取属性值 (Get attribute value)
      • 随机 (Random)
      • 文件上传 (File upload)
      • 文件选择事件 (File choose event)
      • 读取文件 (Read file)
      • 写入文件 (Write file)
      • HTTP
      • 设置变量 (Set variable)
      • 验证代码 (Authenticator Code)
      • 转换 JSON (Converting JSON)
      • 下载文件 (Download file)
      • 文本提取 (Extraction in text)
      • 设置 cookie (Set cookies)
      • 获取 cookies (Get cookies)
      • 清除Cookies (Clear cookies)
      • 图像搜索 (Image Search)
      • 设置数据 (Set Data)
      • 获取数据 (Get Data)
      • 电子表格 (Spreadsheet)
      • 电子表格 V2 (Spreadsheet V2)
      • 书写表 (WriteSheet)
      • 设置用户代理 (Set user agent)
      • 删除文件 (Delete file)
      • IMAP(阅读邮件) (Read mail)
    • 其他 (Other)
      • 暂停 (Pause)
      • 如果 (If)
      • 评估 (Eval)
      • while
      • For
      • 添加评论 (Add comment)
      • 更新账号资料 (Update profile)
      • 停止循环 (Stop loop)
      • 添加日志 (Add log)
      • 运行其他脚本 (Run other script)
      • 断开 (Disconnection)
      • 打开扩展 (Open Extension)
      • 运行命令 (Run command)
    • 脚本 (Scripts)
      • Cookie 机器人 (Robot cookie)
      • 上传多张照片 (Upload multiple photos)
      • 注册 Etsy (Register Etsy)
  • Hướng dẫn cài đặt Hidemium4 trên macOS
Powered by GitBook
On this page
  • Giải thích các trường trong node
  • Local file
  • Google sheet
  • Hướng dẫn chi tiết
  1. AUTOMATION USER MANUAL
  2. Data

WriteSheet

PreviousSpreadsheet V2NextSet user agent

Last updated 11 months ago

Giải thích các trường trong node

Khi bạn muốn ghi dữ liệu vào trong file excel thì có thể sử dụng node WriteSheet

Local file

  • Path to the file: Nhập đường dẫn hoặc chọn biến chứa đường dẫn của file excel của bạn.

  • Sheet name: Nhập sheet name của file excel. Nếu bạn bỏ trống trường này, node sẽ tự động lấy sheet đầu tiên để ghi dữ liệu.

  • Checkbox Append last row: Khi chọn checkbox này, node sẽ tự động ghi vào dòng tiếp theo của hàng cuối dữ liệu. Ví dụ dữ liệu trong file excel của bạn đến dòng 20 thì khi chọn checkbox này node sẽ tự ghi vào dòng tiếp theo là dòng thứ 21.

  • Cell location: Nhập vị trí mà bạn muốn ghi dữ liệu. Khi bạn không chọn checkbox Append last row thì bạn phải nhập ô cần ghi dữ liệu ví dụ A1, B1, A2,..... và nếu các ô đó đang có dữ liệu thì node sẽ ghi đè dữ liệu. Còn khi bạn chọn checkbox thì bạn chỉ cần nhập tên cột là A, B, C… thì node sẽ tự hiểu vào ghi vào dòng tiếp theo của hàng cuối cùng chứa dữ liệu.

  • Variable: Nhập giá trị mà bạn muốn ghi vào ô.

Google sheet

  • Google Spreadsheet ID: Nhập vào ID của file GoogleSheet

  • Credentical file: chọn file Json đã tải về

Hướng dẫn lấy file Credential:

2. Sau khi đăng nhập thành công, ta tạo 1 project mới:

- Chọn Select a project

- Chọn new project

- Nhập tên project và chọn Create

3. Enable Google sheet API

- Tại thanh tìm kiếm nhập Google sheets API. Kết quả tìm kiếm hiện ra, sau đó tại Marketplace chọn Google sheet API

- Thực hiện enable Google sheets API

4. Tạo Credentials

- Sau khi enable Google sheets API thành công, tiếp tục chọn Credentials

- Chọn Create Credentials, sau đó chọn Service account

- Nhập Service account name sau đó chọn Done

- Account vừa tạo sẽ hiển thị ở đây:

- Click vào account đó và chọn tab Keys:

- Chọn Add key -> chọn Create new key:

- Chọn JSON -> Chọn create

Sau khi tạo xong sẽ tự động tải file JSON về, và các bạn thêm file đó vào trường Credencial trong node WriteSheet

5. Shared sheet với account tạo ở bước trên

- Copy email tạo ở bước trên:

- Shared trang sheet với account ở trên:

Như vậy ta đã thực hiện Setup Google sheet để phục vụ việc đọc file trên google sheet thành công. Các trường bên dưới vẫn tương tự như Local file.

Hướng dẫn chi tiết

Giả sử ta có bảng dữ liệu sau:

  • Nếu bạn muốn tự động ghi nối tiếp vào hàng tiếp theo của dòng cuối chứa dữ liệu, thì ta điền như sau:

Khi ta nhập thế này thì node sẽ tự ghi dữ liệu vào dòng số 7

  • Hoặc nếu bạn không muốn ghi nối tiếp mà bạn muốn chỉ định ô để ghi dữ liệu bạn có thể nhập như sau:

Như vậy bạn có thể ghi dữ liệu vào vào các ô mà mình mong muốn. Hoặc bạn có thể nhập ô đã có dữ liệu, node sẽ ghi đè dữ liệu vào các ô mà bạn nhập.

Trường hợp bạn muốn ghi dữ liệu vào một file excel ngay sau khi đọc xong, và bạn muốn ghi đúng vào từng hàng tương ứng bạn có thể sử dụng trường Row data number và Total row datas của node Spreadsheet V2.

Giả sử ta có bảng dữ liệu sau:

Và bạn muốn đọc từng hàng của file khớp với từng profile tương ứng theo uuid, thì node Spreadsheet V2 ta nhập như sau:

Bạn muốn khi đọc thành công từng hàng thì sẽ ghi lại vào hàng tương ứng để biết profile đó có đọc thành công hay không thì bạn sẽ sử dụng node writeSheet để ghi lại:

Như vậy khi đọc thành công 1 hàng thì tại hàng tương ứng ta sẽ ghi chữ "Thành công".

Dưới đây là một script ví dụ về việc ghi vào file sau khi đọc file thành công, bạn hãy thay uuid của profile mà bạn muốn chạy vào file excel.

1. Truy cập link và đăng nhập

https://console.cloud.google.com/
11KB
example.xlsx
7KB
writesheet.txt