<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cloud-Pc on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/cloud-pc/</link>
    <description>Recent content in Cloud-Pc on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 18 Jun 2024 17:41:35 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/cloud-pc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Python-based way to keep China Telecom Cloud PC awake</title>
      <link>https://blog.margrop.net/en/post/automating-connections-to-ctyun-desktop-using-python/</link>
      <pubDate>Tue, 18 Jun 2024 17:41:35 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/automating-connections-to-ctyun-desktop-using-python/</guid>
      <description>&lt;h4 id=&#34;principle-regularly-connect-to-china-telecom-cloud-desktop-interval-must-be-less-than-1-hour&#34;&gt;Principle: Regularly connect to China Telecom Cloud Desktop (interval must be less than 1 hour)&lt;/h4&gt;&#xA;&lt;h5 id=&#34;step-1-obtain-request-data&#34;&gt;Step 1: Obtain Request Data&lt;/h5&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Open Chrome browser&amp;rsquo;s Developer Tools&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In Chrome browser, press &lt;code&gt;F12&lt;/code&gt; or right-click and select &lt;code&gt;Inspect&lt;/code&gt; to open Developer Tools.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Visit and log in to China Telecom Cloud Desktop&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Visit &lt;code&gt;https://pc.ctyun.cn&lt;/code&gt; and log in to Cloud PC with your account.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Copy the curl command for the connect request&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In Developer Tools, select the &lt;code&gt;Network&lt;/code&gt; tab, find and click on the request named &lt;code&gt;connect&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Right-click on this request and select &lt;code&gt;Copy as cURL (cmd)&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Obtain authData from localStorage&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In Developer Tools, select the &lt;code&gt;Application&lt;/code&gt; tab.&lt;/li&gt;&#xA;&lt;li&gt;In the left sidebar, find &lt;code&gt;Local Storage&lt;/code&gt; and select &lt;code&gt;https://pc.ctyun.cn&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Find the &lt;code&gt;authData&lt;/code&gt; key and copy its corresponding value.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
  </channel>
</rss>
