[英]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.