简体   繁体   English

在 python 中使用 Tableau REST API 提取图像向下滚动问题

[英]Extract image Scrolldown issue using Tableau REST API in python

I want to extract image from Tableau workbook using REST API in python.我想使用 python 中的 REST API 从 Tableau 工作簿中提取图像。 I am able to get token for Tableau authentication and fetch corresponding workbook and view id.我能够获取用于 Tableau 身份验证的令牌并获取相应的工作簿和视图 ID。

When i am extracting image using API like:-当我使用 API 提取图像时,例如:-

url = "http://tableau.xyz.com/api/3.7/sites/bfda4337123971272/views/b55-83e229905e17/image?image-resolution=high" url = “http://tableau.xyz.com/api/3.7/sites/bfda4337123971272/views/b55-83e229905e17/image?image-resolution=high”

I am able to save the response in png image and able to get the output of worksheet in image but when the worksheet has large detailed data with long scroll down bar, the image is not getting fully extracted.我能够将响应保存在 png 图像中,并且能够在图像中获取工作表的 output,但是当工作表具有带有长向下滚动条的大量详细数据时,图像没有被完全提取。 The response size is less than 50 MB which is maximum limit.响应大小小于 50 MB,这是最大限制。

Can someone please suggest if we need to add any other options in GET URL in python.有人可以建议我们是否需要在 python 的 GET URL 中添加任何其他选项。

That's how requesting an image works here.这就是在这里请求图像的方式。

If your view is a worksheet instead of a dashboard or story, you can paginate it by putting a field on the pages shelf, and using the Page Setup menu command in Tableau Desktop to specify page formatting details.如果您的视图是工作表而不是仪表板或故事,则可以通过将字段放在页面架上并使用 Tableau Desktop 中的“页面设置”菜单命令指定页面格式详细信息来对其进行分页。

Another option is design your dashboard to fit on a page and then have a filter or parameter that allows you to paginate through data.另一种选择是将仪表板设计为适合页面,然后具有允许您对数据进行分页的过滤器或参数。 (You can pass a filter or parameter setting with the URL) (您可以通过 URL 传递过滤器或参数设置)

Typically, you want to design a version of your Tableau view that is laid out well for printing.通常,您希望设计一个布局良好的 Tableau 视图版本以供打印。 You don't typically get great results by simply printing a view that was designed to be used interactively on a computer screen.通过简单地打印设计用于在计算机屏幕上交互使用的视图通常不会获得很好的结果。 That's less effort than it sounds, because both views can use the same underlying data sources, and many of the same component views.这比听起来要省力,因为两个视图都可以使用相同的底层数据源,以及许多相同的组件视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Python 2.7对Tableau REST API进行身份验证 - Authenticate Tableau REST API using Python 2.7 使用Rest API Python进行Tableau下载/导出图像 - Tableau download/export images using Rest api python 使用 python 和 REST 查询 Tableau Server 以导出视图 API - Querying Tableau Server for exporting a view using python and REST API BigQuery API REST 使用 Python 的身份验证问题 - Authentification issue to BigQuery API REST using Python 使用 Python 和 REST API 将图片上传到 Shopify - Upload image to Shopify using Python and REST API 当我们在一个工作表中有多个仪表板时,无法使用 rest api 通过 python 访问画面数据 - Unable to access tableau data using rest api via python when we have multiple dashboards in a a worksheet 使用Tableau Data Extract API(Python和Linux)时“文件太短” - “File too short” with Tableau Data Extract API (Python and Linux) Python酸洗/多重处理和Tableau Data Extract API的问题 - Issues with Python pickling/multiprocessing and Tableau Data Extract API 是否可以使用python从已发布的Tableau工作簿/服务器中提取数据 - Is it possible to extract data from published Tableau workbook / server using python 在Python 3中创建超级Tableau Extract - Creating hyper Tableau Extract in Python 3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM