Extract specific html (with a flex container) using ironpython in GH

Hi,
I am trying to web scrape data using IronPython in Grasshopper from a specific widget on this link: https://vemcount.app/embed/widget/uOCRuLPangWo5fT?locale=en

The code I am using is as follows

import urllib
import os

web = urllib.urlopen(url)
html = web.read()
web.close()

The html output contains all the html code from this link except for the parts I need. When I inspect it on chrome it has a “flex” button next to it such as the following image.

Anything that is rooted under the line with a “flex” button does not appear in the scraping result and comes as a blank line.

I am interested in the number 311 which changes every 2 seconds in the live link and it can be found in the html code between

<span>311</span>

Is there a way I can get this value, as well as any other value, using IronPython?

P.S. I am a noob in actual coding, that’s why I might have issues with terminologies, but have a fair background in grasshopper. Your help is much appreciated. Thanks.

Based no the screenshot that widget is being done entirely in JavaScript. The Python code will get the HTML code, but it will not evaluate and run the dynamic part - this is something the browser does for you. The DOM elements you are inspecting in the middle are all dynamically created.

You won’t be able to get the flex button contents by reading the source HTML this way.

1 Like

What you need to do is spoof a browser to get the full dynamic output. There are many tutorials out there on how to do that with something like the requests and/or urllib2 modules, but they are CPython libraries. BeautifulSoup is a beloved CPython module to parse the HTML code.

What I got when I used the requests module was as follows:
it did not have the numbers I need. Any idea how to get them?

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Central Library - Duhig North &amp; Link</title>

    <meta charset="utf-8">
    <meta name="google" content="notranslate">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="csrf-token" content="">
    <link rel="stylesheet" href="/build/app.css?id=2fefc4f9faa59eebcb4b">
    <link rel="stylesheet" href="https://vemcount.app/fonts/hamburg_serial/stylesheet.css">

    <style>
        #embed, #main {
            height: 100vh;
        }

        .vue-grid-item {
            margin-bottom: 0px !important;
        }

        .powered_by {
            position: absolute;
            bottom: 0px;
            right: 0px;
            background-color: rgba(0, 0, 0, 0.18);
            color: #fff;
            padding: 2px 5px;
            font-size: 9px;
        }

        .powered_by:hover, .powered_by:link, .powered_by:visited {
            text-decoration: none;
            display: none;
        }

        .dashboard-widget .relative {
            overflow: hidden !important;
        }

        
    </style>

    <script>
        window.App = {"socketAppKey":"eJSkWUHWpwolvjVcT2ZxUJZXnDpxtRljdZl74fKr","socketCluster":null,"socketHost":"websocket.vemcount.com","socketPort":443,"socketSecurePort":443,"socketDisableStats":true,"socketEncrypted":true,"locale":null,"settings":[{"name":"type","value":"{\"count_in\":\"column\"}"},{"name":"period","value":"[\"yesterday\"]"},{"name":"period_step","value":"hour"},{"name":"hide_datalabel","value":"0"},{"name":"currency","value":"AUD"},{"name":"show_days","value":"[0,1,2,3,4,5,6]"},{"name":"show_months","value":"[1,2,3,4,5,6,7,8,9,10,11,12]"},{"name":"show_hours_from","value":"00:00"},{"name":"show_hours_to","value":"23:45"},{"name":"data_heatmap","value":"blue"},{"name":"weather_metrics","value":"0"},{"name":"first_day_of_week","value":"1"},{"name":"time_format24","value":"time_format24"},{"name":"date_time_format","value":"2"},{"name":"number_grouping","value":","},{"name":"number_decimal","value":"."},{"name":"opening_hours_overlap","value":"0"},{"name":"data_output","value":"count_in"}],"sound":null};
    </script>

    <script src="/build/lang/en.js?v=2022.04.5"></script>

</head>

<body class="bg-transparent">

<main id="main">
    <div id="embed" >
        
    <div class="w-full h-full vue-grid-item cssTransforms" style="position: absolute;">

        
        
        
        
        
        
        
        
                    <live-inside :embedded="true" :widget="{&quot;id&quot;:81438,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;Central Library - Duhig North &amp; Link&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;uOCRuLPangWo5fT&quot;,&quot;internal&quot;:&quot;VRg4JTIRrtJ7Pwg&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:1100,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7665&quot;]},&quot;created_at&quot;:&quot;2021-03-09T02:58:27.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-03-22T23:20:25.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/uOCRuLPangWo5fT?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[],&quot;pane&quot;:{&quot;id&quot;:4005,&quot;dashboard_id&quot;:244,&quot;name&quot;:&quot;All Libraries&quot;,&quot;asset_id&quot;:null,&quot;secret&quot;:&quot;R0sHI6UhHvbjX9c&quot;,&quot;embeddable&quot;:1,&quot;created_at&quot;:&quot;2019-05-20T01:28:05.000000Z&quot;,&quot;updated_at&quot;:&quot;2019-09-30T01:19:06.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;sharedBy&quot;:{&quot;id&quot;:12008,&quot;user_name&quot;:&quot;UQLibrary&quot;,&quot;base_company&quot;:1562,&quot;two_factor_confirmed&quot;:0,&quot;password_created_at&quot;:&quot;2019-09-16 01:10:39&quot;,&quot;name&quot;:&quot;Glen Dalgleish&quot;,&quot;email&quot;:&quot;g.dalgleish@library.uq.edu.au&quot;,&quot;phone&quot;:&quot;0438706881&quot;,&quot;user_package&quot;:0,&quot;lastseen_at&quot;:&quot;2022-04-15 22:58:49&quot;,&quot;inactive_notified_at&quot;:null,&quot;language&quot;:&quot;en&quot;,&quot;welcome_email_sent&quot;:null,&quot;welcome_valid_until&quot;:null,&quot;user_timezone&quot;:&quot;Australia\/Brisbane&quot;,&quot;user_timezone_dontask&quot;:null,&quot;login_integration&quot;:null,&quot;failed_login_attempts&quot;:0,&quot;last_failed_login_at&quot;:&quot;2022-04-13 05:22:59&quot;,&quot;locked_until&quot;:null,&quot;created_at&quot;:&quot;2019-03-07T03:58:47.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-15T22:58:49.000000Z&quot;,&quot;created_by&quot;:5744,&quot;deleted_at&quot;:null},&quot;sharedTo&quot;:[10993],&quot;sharedToRoles&quot;:[],&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/pane\/R0sHI6UhHvbjX9c?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;nextXAndYPosition&quot;:{&quot;x&quot;:2,&quot;y&quot;:8},&quot;dashboard&quot;:{&quot;id&quot;:244,&quot;initial_pane&quot;:4005,&quot;cycle&quot;:0,&quot;cycle_time&quot;:15000,&quot;user_id&quot;:12008,&quot;created_at&quot;:&quot;2019-04-02T08:10:49.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-13T05:25:21.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;writeable&quot;:true,&quot;user&quot;:{&quot;id&quot;:12008,&quot;user_name&quot;:&quot;UQLibrary&quot;,&quot;base_company&quot;:1562,&quot;two_factor_confirmed&quot;:0,&quot;password_created_at&quot;:&quot;2019-09-16 01:10:39&quot;,&quot;name&quot;:&quot;Glen Dalgleish&quot;,&quot;email&quot;:&quot;g.dalgleish@library.uq.edu.au&quot;,&quot;phone&quot;:&quot;0438706881&quot;,&quot;user_package&quot;:0,&quot;lastseen_at&quot;:&quot;2022-04-15 22:58:49&quot;,&quot;inactive_notified_at&quot;:null,&quot;language&quot;:&quot;en&quot;,&quot;welcome_email_sent&quot;:null,&quot;welcome_valid_until&quot;:null,&quot;user_timezone&quot;:&quot;Australia\/Brisbane&quot;,&quot;user_timezone_dontask&quot;:null,&quot;login_integration&quot;:null,&quot;failed_login_attempts&quot;:0,&quot;last_failed_login_at&quot;:&quot;2022-04-13 05:22:59&quot;,&quot;locked_until&quot;:null,&quot;created_at&quot;:&quot;2019-03-07T03:58:47.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-15T22:58:49.000000Z&quot;,&quot;created_by&quot;:5744,&quot;deleted_at&quot;:null}},&quot;widgets&quot;:[{&quot;id&quot;:81438,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;Central Library - Duhig North &amp; Link&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;uOCRuLPangWo5fT&quot;,&quot;internal&quot;:&quot;VRg4JTIRrtJ7Pwg&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:1100,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7665&quot;]},&quot;created_at&quot;:&quot;2021-03-09T02:58:27.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-03-22T23:20:25.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/uOCRuLPangWo5fT?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81455,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;Biological Sciences Library&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:2,&quot;y&quot;:0,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;mI3J9YTu76eu0i4&quot;,&quot;internal&quot;:&quot;0wgPrVV2pGgarSQ&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:850,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7878&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:20:03.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:15:34.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/mI3J9YTu76eu0i4?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81456,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;Duhig Tower&quot;,&quot;description&quot;:&quot;Seating capacity (520 used - 420 Library seats in addition to 70 Fryer, 60 D114, 125 Library staff)&quot;,&quot;x&quot;:0,&quot;y&quot;:1,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;APSEXSGvNzftUwB&quot;,&quot;internal&quot;:&quot;YWtQSkCx8Cuvc3L&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:420,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7411&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:30:25.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:08:44.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/APSEXSGvNzftUwB?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81458,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;ENGINEERING &amp; SCIENCES LIBRARY&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:2,&quot;y&quot;:1,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;tMKr7WfIIj3tnhi&quot;,&quot;internal&quot;:&quot;ajjt1sGpWXls3hO&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:450,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7879&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:36:46.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-03-11T03:26:14.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/tMKr7WfIIj3tnhi?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81459,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;LAW LIBRARY&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:2,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;qii80DatkMhP9HF&quot;,&quot;internal&quot;:&quot;KCwxp3h7EIj7z57&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:280,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7882&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:39:08.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:14:44.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/qii80DatkMhP9HF?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81457,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;ARCHITECTURE AND MUSIC LIBRARY&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:2,&quot;y&quot;:2,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;FtqsyFtTS7ow2TO&quot;,&quot;internal&quot;:&quot;ae78S78BOt6LJFN&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:150,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:true,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7877&quot;],&quot;offset&quot;:0},&quot;created_at&quot;:&quot;2021-03-09T03:32:39.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-07T18:01:19.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/FtqsyFtTS7ow2TO?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81461,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;GATTON LIBRARY&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:3,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;ssfkggbb6pCWj9V&quot;,&quot;internal&quot;:&quot;vxXJrV8DXHw2Ruk&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:540,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;shops&quot;,&quot;items&quot;:[&quot;14985&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:46:12.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:15:56.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/ssfkggbb6pCWj9V?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81437,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;Pace Library&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:2,&quot;y&quot;:3,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;zjaakV8KfKEp5kV&quot;,&quot;internal&quot;:&quot;tN24LVeplfuqlu7&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:160,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:true,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;shops&quot;,&quot;items&quot;:[&quot;14980&quot;],&quot;offset&quot;:0},&quot;created_at&quot;:&quot;2021-03-09T02:03:02.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-14T18:00:53.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/zjaakV8KfKEp5kV?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81460,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;ALL LIBRARIES ON ST LUCIA CAMPUS&quot;,&quot;description&quot;:&quot;Live occupancy in all St Lucia Branches \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:5,&quot;w&quot;:4,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;zEnCN5oI1TAr615&quot;,&quot;internal&quot;:&quot;O0ifO7KXwItLR21&quot;,&quot;embeddable&quot;:0,&quot;content&quot;:{&quot;target&quot;:3300,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7877&quot;,&quot;7878&quot;,&quot;7879&quot;,&quot;7665&quot;,&quot;7618&quot;,&quot;7617&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:43:20.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:15:55.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/zEnCN5oI1TAr615?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81466,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;DUHIG COMPLEX&quot;,&quot;description&quot;:&quot;duhig&quot;,&quot;x&quot;:0,&quot;y&quot;:6,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;hzzXcBqvvWe2Z2O&quot;,&quot;internal&quot;:&quot;rsNTK0pueUSqYmH&quot;,&quot;embeddable&quot;:0,&quot;content&quot;:{&quot;target&quot;:1720,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;shops&quot;,&quot;items&quot;:[&quot;14975&quot;]},&quot;created_at&quot;:&quot;2021-03-09T04:00:33.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-03-09T04:23:24.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/hzzXcBqvvWe2Z2O?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81464,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;FRYER LIBRARY&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:2,&quot;y&quot;:6,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;DtjZ2lUibRdpft3&quot;,&quot;internal&quot;:&quot;nGYf4a45tFjjboN&quot;,&quot;embeddable&quot;:0,&quot;content&quot;:{&quot;target&quot;:70,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;shops&quot;,&quot;items&quot;:[&quot;14982&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:52:02.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-03-09T04:23:28.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/DtjZ2lUibRdpft3?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:81465,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;ALL LIBRARIES IN ALL LOCATIONS&quot;,&quot;description&quot;:&quot;Live occupancy \/ Seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:7,&quot;w&quot;:4,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;purple&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;Uue9eWeI6ShAxyA&quot;,&quot;internal&quot;:&quot;59j5MIluWH4gLJs&quot;,&quot;embeddable&quot;:0,&quot;content&quot;:{&quot;target&quot;:4000,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7877&quot;,&quot;7878&quot;,&quot;7879&quot;,&quot;7665&quot;,&quot;7880&quot;,&quot;7883&quot;,&quot;7884&quot;,&quot;7411&quot;,&quot;7882&quot;]},&quot;created_at&quot;:&quot;2021-03-09T03:56:35.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-08-27T03:13:40.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/Uue9eWeI6ShAxyA?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]},{&quot;id&quot;:97446,&quot;pane_id&quot;:4005,&quot;title&quot;:&quot;HERSTON LIBRARY&quot;,&quot;description&quot;:&quot;Library Occupancy \/ seating capacity&quot;,&quot;x&quot;:0,&quot;y&quot;:8,&quot;w&quot;:2,&quot;h&quot;:1,&quot;bg_color&quot;:&quot;red&quot;,&quot;text_color&quot;:&quot;black&quot;,&quot;type&quot;:&quot;live-inside&quot;,&quot;secret&quot;:&quot;Cpid6BlEwXbnhrn&quot;,&quot;internal&quot;:&quot;NYZrnshwT9EAIlS&quot;,&quot;embeddable&quot;:1,&quot;content&quot;:{&quot;target&quot;:109,&quot;bidirectional&quot;:true,&quot;target_enable&quot;:true,&quot;prettify&quot;:false,&quot;target_type&quot;:&quot;donut&quot;,&quot;target_donut_hide_metric&quot;:false,&quot;target_donut_target_hide_label&quot;:false,&quot;target_visual_inside_text&quot;:null,&quot;target_visual_available_text&quot;:null,&quot;target_screen_ok_title&quot;:null,&quot;target_screen_ok_text&quot;:null,&quot;target_screen_ok_color&quot;:&quot;#38A169&quot;,&quot;target_screen_ok_image&quot;:-1,&quot;target_screen_warning_title&quot;:null,&quot;target_screen_warning_percentage&quot;:&quot;90&quot;,&quot;target_screen_warning_text&quot;:null,&quot;target_screen_warning_color&quot;:&quot;#DD6B20&quot;,&quot;target_screen_warning_image&quot;:-1,&quot;target_screen_stop_title&quot;:null,&quot;target_screen_stop_text&quot;:null,&quot;target_screen_stop_color&quot;:&quot;#E53E3E&quot;,&quot;target_screen_stop_image&quot;:-1,&quot;target_screen_size&quot;:&quot;xl&quot;,&quot;target_count_size&quot;:&quot;base&quot;,&quot;target_screen_text_color&quot;:&quot;white&quot;,&quot;target_screen_count&quot;:false,&quot;target_screen_count_type&quot;:1,&quot;target_screen_custom_colors&quot;:false,&quot;target_screen_hide_icons&quot;:false,&quot;source&quot;:&quot;zones&quot;,&quot;items&quot;:[&quot;7883&quot;]},&quot;created_at&quot;:&quot;2021-08-27T03:41:49.000000Z&quot;,&quot;updated_at&quot;:&quot;2021-09-09T05:38:47.000000Z&quot;,&quot;deleted_at&quot;:null,&quot;embed&quot;:&quot;&lt;iframe src=\&quot;https:\/\/vemcount.app\/embed\/widget\/Cpid6BlEwXbnhrn?locale=en\&quot; width=\&quot;600\&quot; height=\&quot;313\&quot; frameborder=\&quot;0\&quot; scrolling=\&quot;no\&quot; style=\&quot;border: none;\&quot;&gt;&lt;\/iframe&gt;&quot;,&quot;alerts&quot;:[],&quot;alert_schedules&quot;:[]}],&quot;users&quot;:[{&quot;id&quot;:10993,&quot;user_name&quot;:&quot;counts@pf.uq.edu.au&quot;,&quot;base_company&quot;:1562,&quot;two_factor_confirmed&quot;:0,&quot;password_created_at&quot;:&quot;2018-05-18 03:38:29&quot;,&quot;name&quot;:&quot;Barbara Robinson&quot;,&quot;email&quot;:&quot;b.robinson3@uq.edu.au&quot;,&quot;phone&quot;:&quot;0413 008 053&quot;,&quot;user_package&quot;:0,&quot;lastseen_at&quot;:&quot;2022-04-16 03:05:12&quot;,&quot;inactive_notified_at&quot;:null,&quot;language&quot;:&quot;en&quot;,&quot;welcome_email_sent&quot;:null,&quot;welcome_valid_until&quot;:null,&quot;user_timezone&quot;:&quot;Australia\/Brisbane&quot;,&quot;user_timezone_dontask&quot;:null,&quot;login_integration&quot;:null,&quot;failed_login_attempts&quot;:0,&quot;last_failed_login_at&quot;:null,&quot;locked_until&quot;:null,&quot;created_at&quot;:&quot;2018-05-18T03:38:30.000000Z&quot;,&quot;updated_at&quot;:&quot;2022-04-16T03:05:12.000000Z&quot;,&quot;created_by&quot;:5744,&quot;deleted_at&quot;:null,&quot;pivot&quot;:{&quot;dashboard_pane_id&quot;:4005,&quot;user_id&quot;:10993}}],&quot;roles&quot;:[]}}" :active="true"></live-inside>
            
            
                
        
        
        
                
    </div>

    </div>
</main>

<a title=" Vemco Group A/S " class="powered_by" target="_blank"
   href="http://vemcount.com">Powered by
    <b>vemcount.com</b>
</a>

<script src="/build/manifest.js?id=7f2e9aa3431c681a4683"></script>
<script src="/build/vendor.js?id=19867aae3b960cda7d79"></script>
<script src="/build/embed.js?id=2ff0173dd78c5c1f99c6"></script>

</body>
</html>

This works for me:

scrape

from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from bs4 import BeautifulSoup
import time

url = "https://vemcount.app/embed/widget/uOCRuLPangWo5fT?locale=en"

# Initialise the webdriver
firefox_options = Options()
firefox_options.headless = True
driver = webdriver.Firefox(options=firefox_options)
driver.get(url)

time.sleep(5)  # ensure the page is fully loaded

# Render the dynamic content to static HTML
html = driver.page_source
# print(html)

# Parse the static HTML
soup = BeautifulSoup(html, "html.parser")
divs = soup.find("div", {"class": "flex items-center"})
num = int(divs.find("span").text)

print(num)

# Close the webdriver
driver.close()

You need to install the CPython modules selenium and bs4 (BeautifulSoup), as well as a web driver that selenium can interface with (cf. documentation). I use geckodriver for Firefox, but others can be used as well.

1 Like

Thank you so much for that, I should try Firefox (geckodriver) because when I tried chrome but it did not work for some reason to do with AudioContext neeeding a user gesture I posted the problem here

and meanwhile, I also found another solution in CPython also using playwright in case someone is interested.

#part of the help to write the script I got from https://stackoverflow.com/questions/64303326/using-playwright-for-python-how-do-i-select-or-find-an-element

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(slow_mo=1000)

    page = browser.new_page()
    page.goto('https://vemcount.app/embed/widget/uOCRuLPangWo5fT')
    central = page.query_selector("p.w-full span");
    print({'central': central.inner_html()})
        
    browser.close()
1 Like