<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">IJMHP</journal-id>
<journal-id journal-id-type="nlm-ta">IJMHP</journal-id>
<journal-id journal-id-type="publisher-id">IJMHP</journal-id>
<journal-title-group>
<journal-title>International Journal of Mental Health Promotion</journal-title>
</journal-title-group>
<issn pub-type="epub">2049-8543</issn>
<issn pub-type="ppub">1462-3730</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">30232</article-id>
<article-id pub-id-type="doi">10.32604/ijmhp.2023.030232</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Effect of Online Social Networking on Emotional Status and Its Interaction with Offline Reality during the Early Stage of the COVID-19 Pandemic in China</article-title><alt-title alt-title-type="left-running-head">Effect of Online Social Networking on Emotional Status and its Interaction with Offline Reality During the Early Stage of the COVID-19 Pandemic in China</alt-title><alt-title alt-title-type="right-running-head">Effect of Online Social Networking on Emotional Status and its Interaction with Offline Reality During the Early Stage of the COVID-19 Pandemic in China</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Lu</surname><given-names>Xiaolin</given-names></name>
<xref ref-type="aff" rid="aff-1">1</xref><email>lxllucya@xidian.edu.cn</email>
</contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Miao</surname><given-names>Xiaolei</given-names></name>
<xref ref-type="aff" rid="aff-2">2</xref>
</contrib>
<aff id="aff-1"><label>1</label><institution>Department of Physical Education, Xidian University</institution>, <addr-line>Xi&#x2019;an, 710126</addr-line>, <country>China</country></aff>
<aff id="aff-2"><label>2</label><institution>Department of Sociology, Xi&#x2019;an Jiaotong University</institution>, <addr-line>Xi&#x2019;an, 710049</addr-line>, <country>China</country></aff>
</contrib-group><author-notes><corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Xiaolin Lu. Email: <email>lxllucya@xidian.edu.cn</email></corresp></author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2023</year></pub-date>
<pub-date date-type="pub" publication-format="electronic"><day>10</day><month>8</month><year>2023</year></pub-date>
<volume>25</volume>
<issue>9</issue>
<fpage>1041</fpage>
<lpage>1052</lpage>
<history>
<date date-type="received"><day>28</day><month>3</month><year>2023</year></date>
<date date-type="accepted"><day>24</day><month>5</month><year>2023</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2023 Lu and Miao</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Lu and Miao</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_IJMHP_30232.pdf"></self-uri>
<abstract>
<sec>
<title>Background</title>
<p>During the early stages of the COVID-19 pandemic in China, social interactions shifted to online spaces due to lock-downs and social distancing measures. As a result, the impact of online social networking on users&#x2019; emotional status has become stronger than ever. This study examines the association between online social networking and Internet users&#x2019; emotional status and how offline reality affects this relationship.</p>
</sec>
<sec>
<title>Methods</title>
<p>The study utilizes cross-sectional online survey data (n &#x003D; 3004) and Baidu Migration big data from the first 3 months of the pandemic. Two dimensions of online networking are measured: social support and information sources.</p>
</sec>
<sec>
<title>Results</title>
<p>First, individuals&#x2019; online social support (&#x03B2; &#x003D; 0.16, <italic>p</italic> &#x003C; 0.05) and information sources (&#x03B2; &#x003D; 0.08, <italic>p</italic> &#x003C; 0.01) are both positively associated to their emotional status during the epidemic. Second, these positive associations are moderated by social status and provincial pandemic control interventions. With regards to the moderation effect of social status, the constructive impact of information sources on emotional well-being is more pronounced among individuals from vulnerable groups compared to those who are not. With regard to the moderation effect of provincial interventions, online social support has the potential to alleviate the adverse repercussions of high rates of confirmed COVID-19 cases and strict lockdown measures while simultaneously augmenting the favorable effects of recovery.</p>
</sec>
<sec>
<title>Conclusion</title>
<p>The various dimensions of social networking exert distinct effects on emotional status through diverse mechanisms, all of which must be taken into account when designing and adapting pandemic-control interventions.</p>
</sec>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>COVID-19</kwd>
<kwd>emotional status</kwd>
<kwd>online social networking</kwd>
<kwd>social support</kwd>
<kwd>information sources</kwd>
</kwd-group>
<funding-group>
<award-group id="awg1">
<funding-source>Fundamental Research Funds for the Central Universities</funding-source>
<award-id>XJSJ23180</award-id>
</award-group>
<award-group id="awg2">
<funding-source>Shaanxi Province Philosophy and Social Science Research Project</funding-source>
<award-id>2023QN0046</award-id>
</award-group>
</funding-group>
</article-meta>
</front>
<body>
<sec id="s1">
<title>Introduction</title>
<p>The outbreak of the COVID-19 pandemic had a marked impact on the emotional status of people all over the world. To contain the spread of the virus, many countries implemented public health measures such as social distancing, mobility restrictions, case isolation, and non-essential business closures [<xref ref-type="bibr" rid="ref-1">1</xref>]. These interventions created different levels of economic burden, unemployment risk, travel restrictions, and social isolation for residents [<xref ref-type="bibr" rid="ref-2">2</xref>]. Social isolation and loneliness have negative effects on individuals&#x2019; mental health, life satisfaction, and subjective well-being [<xref ref-type="bibr" rid="ref-3">3</xref>,<xref ref-type="bibr" rid="ref-4">4</xref>]. In the early stage of the pandemic, Chinese residents suffered from depression, anxiety, and other psychological problems. Further, more severe outbreaks were associated with more severe symptoms [<xref ref-type="bibr" rid="ref-5">5</xref>,<xref ref-type="bibr" rid="ref-6">6</xref>].</p>
<p>In this context, online social networking became an important way to maintain social contact and combat social isolation. For elderly people living alone in China, the use of WeChat and other apps for online social networking during the COVID-19 pandemic helped to increase social connections between generations and to improve their subjective well-being [<xref ref-type="bibr" rid="ref-7">7</xref>]. Professionals also provided psychological counseling services to those quarantined at home through WeChat groups and other platforms to support their mental health [<xref ref-type="bibr" rid="ref-8">8</xref>]. However, studies on the effects of social media use on individuals&#x2019; mental health during COVID-19 had mixed results. While some studies have shown that WeChat use can regulate the negative impact of social isolation on individuals&#x2019; mental health and life satisfaction [<xref ref-type="bibr" rid="ref-9">9</xref>], others have shown that in the early periods of the pandemic in 2020, the prevalence of Internet addiction rose to 24.4% among Taiwan junior high school students [<xref ref-type="bibr" rid="ref-10">10</xref>]. Researchers from Brazil found that social media use can have both positive and negative effects on individuals&#x2019; well-being [<xref ref-type="bibr" rid="ref-11">11</xref>].</p>
<p>This study aims to contribute to existing research both theoretically and methodologically. At the theoretical level, prior research findings on the relationship between online social networking and emotional status have been inconsistent. Limited attention has been paid to macro-level factors or the interplay between online and offline interactions. By integrating social capital theory and the network society, we aim to analyze how social networking serves as a resource for risk management in this study. At the methodological level, we place the impact of online social networking on emotional status in the context of COVID-19. Our research aims to investigate the influence of online social networking on emotional status while also examining how this effect is moderated by individual social status and provincial interventions. Additionally, we combine data from individual-level surveys and provincial-level online big data to generate new insights in this field.</p>
<sec id="s1_1">
<title>Two dimensions of online social networking</title>
<p>Based on the characteristics and functions of social capital, Putnam distinguished between bonding social capital and bridging social capital [<xref ref-type="bibr" rid="ref-12">12</xref>]. Bonding social capital is generated in dense networks within a group, community, or organization. Its main function is to provide emotional support for individuals. Bridging social capital is generated from a sparse network that crosses group boundaries and connects many individuals with different statuses and attributes. It provides members with heterogeneous information [<xref ref-type="bibr" rid="ref-13">13</xref>]. Similarly, scholars have divided online social networking into two basic types. The first is online social support. Offline interpersonal connections are enhanced through the internet, and comfortable communication with close acquaintances is maintained online. Online social support provides companionship and alleviates loneliness [<xref ref-type="bibr" rid="ref-14">14</xref>]. The second type is online information sources, which involve extensive network communication in online spaces such as virtual communities and social media platforms. Their main function is to obtain and extend heterogeneous information resources [<xref ref-type="bibr" rid="ref-15">15</xref>].</p>
</sec>
<sec id="s1_2">
<title>The effect of online social networking on emotional status</title>
<p>Regarding online social support, relationships that offer social support are often marked by depth, mutual benefit, and a strong sense of mindfulness [<xref ref-type="bibr" rid="ref-16">16</xref>]. Typically, family members and close friends constitute the most essential components of an individual&#x2019;s core social network. These types of connections tend to foster communication, promote harmony, and reinforce cohesiveness within a group. Data analyses from numerous countries and regions have consistently demonstrated that more formal and informal connections tend to make people healthier and happier [<xref ref-type="bibr" rid="ref-17">17</xref>]. Besides, dense social networks can help individuals regulate their emotions, cope with stress, and maintain mental resilience during difficult situations [<xref ref-type="bibr" rid="ref-18">18</xref>]. Nonetheless, it is important to investigate whether the emotional impact of online social support during COVID-19 quarantine may differ from the conclusions drawn from studies on offline social support.</p>
<p>Regarding online information sources, during public health crises, the richness and heterogeneity of the online information to which individuals have access can significantly impact their emotional status. Efficient information transfer is a crucial element of risk management during such times. Studies conducted during the pandemic found that the clearer the subjects&#x2019; understanding of the main symptoms and the progress of COVID-19, the smaller the fluctuations in their physical and mental health status [<xref ref-type="bibr" rid="ref-19">19</xref>]. Other studies on Chinese Internet users also found that high heterogeneity in information sources during the pandemic made it easier for people to maintain their health and positive emotional status [<xref ref-type="bibr" rid="ref-20">20</xref>]. We intend to test these conclusions by focusing on the effect of online information sources on emotional status during the quarantine in China.</p>
</sec>
<sec id="s1_3">
<title>The moderating effect of offline factors</title>
<p>(1) Micro level: Social status</p>
<p>The ability to deal with, avoid, and compensate for risks in the face of a pandemic is unequally distributed among different groups [<xref ref-type="bibr" rid="ref-21">21</xref>]. An individual&#x2019;s online social behavior happens in the digital space, where physical subjects are absent. However, the behavioral characteristics, patterns, and psychological effects of online behavior are still shaped by the individual&#x2019;s social status in the offline space [<xref ref-type="bibr" rid="ref-22">22</xref>]. Access to the Internet and how the Internet is used are affected by social status, personality, abilities, and other factors in the offline space [<xref ref-type="bibr" rid="ref-23">23</xref>,<xref ref-type="bibr" rid="ref-24">24</xref>]. Thus, how the use of social media affects emotional status might be moderated by an individual&#x2019;s social status [<xref ref-type="bibr" rid="ref-25">25</xref>].</p>
<p>(2) Macro level: Risk management</p>
<p>The positive effect of social capital on individuals&#x2019; response to COVID-19 is shaped by community-level factors and macro-level institutional factors [<xref ref-type="bibr" rid="ref-26">26</xref>]. Social networking has an impact on emotional status through its interaction with risk management. For instance, individuals who perceive others as non-compliant with control measures or view government actions as ineffective are more likely to display poor mental health; conversely, those who perceive that the government has taken decisive action tend to have better mental health [<xref ref-type="bibr" rid="ref-27">27</xref>]. China&#x2019;s epidemic prevention and control measures are issued directly by provincial governments under a unified policy framework provided by the central government. Therefore, the pandemic control practices of the provincial governments may affect individuals&#x2019; emotional status during a pandemic. We will focus on three aspects of risk management practice.</p>
<p>The first is the relative difficulty of risk management, which is measured by the population inflow into the local area before a lockdown. During the early stages of the pandemic, provinces with high inter-provincial population inflow from Wuhan faced stricter prevention and control measures. This influx of people from areas with high rates of infection not only directly impacted residents&#x2019; emotional status but also perpetuated anxiety through continuous sharing of this information in both online and offline interactions.</p>
<p>The second research focus is the effect of provincial governments&#x2019; risk management, which can be measured by the cumulative number of confirmed cases in each province. In public health, the number of confirmed cases has been widely used to evaluate the effectiveness of prevention and control measures [<xref ref-type="bibr" rid="ref-28">28</xref>,<xref ref-type="bibr" rid="ref-29">29</xref>]. The effectiveness of prevention and control measures determines the public&#x2019;s understanding, acceptance, and confidence in these measures, as well as their attitude toward future epidemic control measures. It also directly affects their attitude toward future epidemic control measures.</p>
<p>The third research focus is recovery from the pandemic, which can be measured by the relaxation of mobility restrictions once the pandemic was under control. After the pandemic was brought under control, most citizens wished to return to work as soon as possible due to economic pressure [<xref ref-type="bibr" rid="ref-30">30</xref>]. During that time, whether the provincial governments could timely adjust interventions and facilitate the orderly resumption of work proved crucial in reestablishing normalcy and shaping residents&#x2019; positive attitudes. Consequently, risk management practices at the provincial level might have moderated the impact of online social networking on individuals&#x2019; emotional status.</p>
<p>To gain a detailed understanding of the correlation between online social networking and emotional status, this study has integrated survey data with provincial-level online big data during the early stages of COVID-19 to address three objectives. Firstly, we examine the relationship between online social networking from two dimensions: online social support and online information sources. Secondly, we investigate how the relationship between online social networking and emotional status is moderated by individuals&#x2019; social status. Thirdly, we will investigate the moderating effect of provincial interventions on this relationship. Therefore, we propose the following hypothesis. Since online social networking has two dimensions, each hypothesis can be refined as two sub-hypotheses as below:</p>
<p>Hypothesis 1: Online social networking is positively related to users&#x2019; emotional status.</p>
<p>Hypothesis 1.1: The more online social support an individual receives in the context of pandemic isolation, the more positive their emotional status.</p>
<p>Hypothesis 1.2: The more variety in individuals&#x2019; online information sources, the more positive their emotional status.</p>
<p>Hypothesis 2: The influence of online social networking on emotional status is moderated by social status.</p>
<p>Hypothesis 2.1: The influence of online social support on emotional status is moderated by social status.</p>
<p>Hypothesis 2.2: The influence of online information sources on emotional status is moderated by social status.</p>
<p>Hypothesis 3: The influence of online social networking on emotional status is moderated by provincial risk management practices.</p>
<p>Hypothesis 3.1: The effect of online social support on emotional status is moderated by provincial risk management practices.</p>
<p>Hypothesis 3.2: The effect of online information sources on emotional status is moderated by provincial risk management practices.</p>
</sec>
</sec>
<sec id="s2">
<title>Materials and Methods</title>
<sec id="s2_1">
<title>Participants and research design</title>
<p>We integrated individual level survey data and provincial level online big data to to conduct our analysis.</p>
<p>1) Individual level: WeChat users online survey</p>
<p>This part of study adopted a cross-sectional research design. In 2020, the number of monthly active users of WeChat reached 1.225 billion [<xref ref-type="bibr" rid="ref-31">31</xref>]. Due to its large user base and the boom in social media usage during the COVID-19 pandemic, many researchers have used data collected from WeChat in behavioral and psychological studies, particularly studies of changes during the COVID-19 pandemic [<xref ref-type="bibr" rid="ref-32">32</xref>]. At the onset of the epidemic, stringent physical distancing measures were enforced nationwide, rendering online surveys almost the only option. We designed a short questionnaire including seven sections: A. Infected respondents or infected acquaintances of respondents; B. Behaviors during the quarantine; C. Social networking during the quarantine; D. Physical and mental health during the quarantine; E. Difficulties and solutions; F. Personal information. We conducted a pilot study with a sample size of 50 and the average survey time was 8 min. After modifications, 60 survey questions were included in the final questionnaire.</p>
<p>We carried out an online survey based on the WeChat sample bank through the data collecting platform named Researcher. The survey was posted online on April 23 and 24, 2020, and the respondents received and completed the questionnaire through the WeChat app on their mobile phones. The data collection platform randomly sampled 30,000 active WeChat users from the Chinese user base, encompassing both urban and rural areas across 31 provinces and over 300 cities. The average age of the users in the sample pool is 30, and they have relatively high levels of education, relatively stable incomes, and are mainly white-collar workers. The survey was completed by 8,019 respondents. To improve the quality of the online survey, three detectors were embedded among survey questions aimed to screen out programs coded to automatically complete questionnaires, multiple entries of a same respondent, and irresponsible answers that were intended to collect a payment for a completed questionnaire. As a result, responses that were careless, incomplete, or repetitive, and automatically completed questionnaires were excluded. Following the screening process, a final sample of 3,004 valid questionnaires was obtained from all provinces in China.</p>
<p>2) Provincial level: Online big data and provincial statistics</p>
<p>This part of study utilized a multilevel research design, incorporating online big data from different sources and survey data. Online big data sets have become increasingly popular in computational social science research due to their immediacy, continuity, authenticity, and large scale. Besides, they can provide objective records independent of subjective reports [<xref ref-type="bibr" rid="ref-24">24</xref>,<xref ref-type="bibr" rid="ref-33">33</xref>]. The online data used in this study was primarily obtained from two sources:</p>
<p>(1) Baidu Migration data. The population flow data used in this research were drawn from the Baidu Migration data set (<ext-link ext-link-type="uri" xlink:href="https://qianxi.baidu.com/#/">https://qianxi.baidu.com/#/</ext-link>). Baidu Migration acquires location data of smartphones in real-time through mobile phone base stations and other devices, anonymously processes the data on an individual level, and calculates overall indicators of daily population flow in different regions. This method accurately reflects the population flow between and within provinces and cities in real-time. To obtain the Baidu Migration data, the authors wrote a crawler program based on the open-source crawler framework Scrapy using Python 3.7. The result was a web-scraping program specifically targeting the Baidu Migration platform. The code used for this is provided in the <xref ref-type="sec" rid="s6">Appendix</xref>. During August to September 2020, the Migration data of more than 300 cities in China in the three months before and after the 2019&#x2013;2020 Spring Festival was captured from the website. Using the Migration data from the same period in 2019 as a baseline, changes in population flow caused by the COVID-19 pandemic in 2020 were calculated. The daily inter-city population flow data and within-city movement index were then measured to gauge the population inflow from epidemic areas and reflect the strength of the lock-downs in various provinces.</p>
<p>(2) Confirmed cases data. The data on the number of confirmed cases is publicly available and released by the Chinese Center for Disease Control and Prevention. This ensures the accuracy of the data and facilitates comparison with related studies.</p>
</sec>
<sec id="s2_2">
<title>Measures</title>
<p>1) Dependent variables</p>
<p>In the WeChat survey, respondents were asked how often they experienced different emotional status, including optimism, calmness, anxiety, and fear. Each state of mind was measured using a 4-point scale with reverse coding for anxiety and fear. Next, we constructed a factor score using principal component factor analysis. The values ranged from 1 to 10, where higher scores represented a more positive emotional status. The Cronbach&#x2019;s &#x03B1; was above 0.8, indicating high validity of this measurement.</p>
<p>2) Independent variables</p>
<p>(1) Online social networking. Online social networking can be divided into two dimensions: online social support and online information sources. To measure online social support, the respondents were asked &#x201C;Has your online communication with relatives, friends, and acquaintances increased since the beginning of the pandemic?&#x201D; The survey question used a 4-point scale (0 &#x003D; &#x201C;never,&#x201D; 1 &#x003D; &#x201C;decrease,&#x201D; 2 &#x003D; &#x201C;constant,&#x201D; and 3 &#x003D; &#x201C;increase&#x201D;). To construct a binary variable, &#x201C;never,&#x201D; &#x201C;decrease,&#x201D; and &#x201C;constant&#x201D; were coded as 0, indicating no increase, and &#x201C;increase&#x201D; was coded as 1. For online information sources, the questionnaire asked the respondents about their &#x201C;sources of information related to the COVID-19,&#x201D; including WeChat, Weibo, news portals, Douyin, Billibilli and other video platforms, and TV broadcasting. This variable was a count variable with answers ranging from 0 to 5; a larger value indicated access to more information channels.</p>
<p>(2) Cumulative confirmed cases. This variable was derived from online data released by CDC. It represented the daily cumulative number of confirmed cases in each province. The cumulative number of confirmed cases in each province on April 23, the date of the survey, was used to represent the severity of the pandemic in the province during the study period.</p>
<p>(3) Population inflow from the epidemic area: This variable was derived from Baidu Migration&#x2019;s online data. As inter-provincial movement of populations from areas with outbreaks was strictly restricted after the Wuhan lockdown on January 23, 2020, this indicator was measured as the percentage of the population flowing into the focal province from Wuhan on January 22. This variable depicted varying levels of difficulty in epidemic prevention and control caused by the geographical location of each province.</p>
<p>(4) Post-pandemic recovery: The population flow index within each province on March 17th was used to measure post-pandemic recovery. March 17th marked the end of the third phase (see <xref ref-type="fig" rid="fig-1">Fig. 1</xref> for the division of phases). This date marked the point when the pandemic was initially under control. The population flow index measured the relaxation of lock-downs and the extent to which social life had returned to normal in each province.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Confirmed cases during different phases of the COVID-19 pandemic.</title></caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="IntJMentHealthPromot-25-30232-f001.tif"/>
</fig>
<p>3) Control variables</p>
<p>We controlled for two dimensions of social status. The first consisted of demographic characteristics, such as gender and age. To ensure a balanced gender ratio, we set a gender quota during the online survey. Respondents ranged in age from 16 to 84 years old with an average age of 29. To control for the nonlinear effect of age, we also added the square term of age as a control variable. The second set of control variables consisted of social status characteristics, such as education level, occupation type, and family income. In terms of education level, 78% of the WeChat sample had obtained or were in the process of obtaining a bachelor&#x2019;s or junior college degree, while 22% had a high school or lower degree. The majority had middle-class occupations; employers and white-collar workers accounted for 11% and 40%, respectively, and blue-collar workers accounted for 32% of the sample. Economic status was measured by annual household income. In the analysis of moderating effects of social status, annual household income was treated as a categorical variable to eliminate the influence of skewed distribution. Following the calculation methods proposed by Li et al. [<xref ref-type="bibr" rid="ref-34">34</xref>], people with annual household incomes of less than 88,300 yuan in 2020 were assigned to the low-income group, while those with annual household incomes of more than 300,000 yuan were assigned to the high-income group. We also included a control variable that measured the frequency of going out. The questionnaire asked &#x201C;How frequently did you go out to parties with others, for shopping or for volunteering or community service, or other outdoor activities during the pandemic?&#x201D; We calculated a principal component factor score for these &#x201C;going out&#x201D; variables, and the values ranged from 1 to 100, where a higher value indicated a higher frequency of going out. Descriptive statistics of these variables are shown in <xref ref-type="table" rid="table-1">Table 1</xref>.</p>
<table-wrap id="table-1"><label>Table 1</label>
<caption>
<title>Descriptive statistics of the variables</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th></th>
<th>N</th>
<th>Means/Percent</th>
<th>SD</th>
<th>Min</th>
<th>Max</th>
</tr>
</thead>
<tbody>
<tr>
<td><bold>Dependent variable</bold></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Emotional status</td>
<td>2,983</td>
<td>7.48</td>
<td>1.84</td>
<td>1</td>
<td>10</td>
</tr>
<tr>
<td><bold>Independent variable</bold></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Online social support</td>
<td>3,003</td>
<td>0.63</td>
<td>0.48</td>
<td>0</td>
<td>3</td>
</tr>
<tr>
<td>Online information sources</td>
<td>3,004</td>
<td>3.33</td>
<td>1.18</td>
<td>0</td>
<td>5</td>
</tr>
<tr>
<td><bold>Control variables</bold></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Going out</td>
<td>3,004</td>
<td>30.30</td>
<td>19.73</td>
<td>1</td>
<td>100</td>
</tr>
<tr>
<td>Age</td>
<td>3,003</td>
<td>29.12</td>
<td>7.73</td>
<td>16</td>
<td>84</td>
</tr>
<tr>
<td>Square of age/100</td>
<td>3,003</td>
<td>9.08</td>
<td>5.52</td>
<td>2.56</td>
<td>70.56</td>
</tr>
<tr>
<td>Gender</td>
<td>3,003</td>
<td>50%</td>
<td>0.5</td>
<td>0 &#x003D; female</td>
<td>1 &#x003D; male</td>
</tr>
<tr>
<td>Household income (Logarithm)</td>
<td>3,003</td>
<td>2.46</td>
<td>1.19</td>
<td>&#x2212;13.82</td>
<td>8.70</td>
</tr>
<tr>
<td>Household income low</td>
<td>609</td>
<td>20.28%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Medium</td>
<td>2,000</td>
<td>66.60%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>High</td>
<td>394</td>
<td>13.12%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Education high school and below</td>
<td>657</td>
<td>21.87%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>College</td>
<td>2,135</td>
<td>71.07%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Masters and above</td>
<td>211</td>
<td>7.02%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Occupation self-employed</td>
<td>327</td>
<td>10.89%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>White collar</td>
<td>1,154</td>
<td>38.42%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Blue collar</td>
<td>959</td>
<td>31.92%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Jobless</td>
<td>563</td>
<td>18.74%</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Confirmed cases (Logarithmic)</td>
<td>31</td>
<td>5.28</td>
<td>1.81</td>
<td>0.69</td>
<td>11.12</td>
</tr>
<tr>
<td>Inflow population</td>
<td>31</td>
<td>2.39</td>
<td>13.49</td>
<td>0</td>
<td>94.23</td>
</tr>
<tr>
<td>Recover</td>
<td>31</td>
<td>0.99</td>
<td>1.20</td>
<td>0</td>
<td>4.71</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2_3">
<title>Data analysis and models</title>
<p>In our study, we used Stata version 17.0 to conduct statistical analyses. First, we integrated online big data at the provincial level with survey data at the individual level. The two datasets were linked based on the locations reported by participants in the survey. This integration of datasets facilitated a comprehensive analysis of the research subject. Next, we employed OLS regression to investigate the impact of online social networking on emotional status and determine whether there was an interaction between online social networking and social status.</p>
<p>Furthermore, we adopted a multilevel model to analyze the relationships between provincial-level and individual-level variables. Both the intercept and slope were expressed as functions of the provincial-level independent variables. The model assumes that the intercepts and slopes at the individual level are random and affected by some independent variables at the provincial level. <inline-formula id="ieqn-1">
<mml:math id="mml-ieqn-1"><mml:msup><mml:mrow><mml:mi mathvariant="normal">x</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:msub><mml:mo>&#x00A0;</mml:mo><mml:mrow><mml:mi mathvariant="normal">j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> in <xref ref-type="disp-formula" rid="eqn-2">Eqs. (2)</xref> and <xref ref-type="disp-formula" rid="eqn-3">(3)</xref> represents the provincial-level independent variables in the jth province, which affect the slope of the individual-level independent variable <inline-formula id="ieqn-2">
<mml:math id="mml-ieqn-2"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> and the intercept in <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>. <inline-formula id="ieqn-3">
<mml:math id="mml-ieqn-3"><mml:mrow><mml:msub><mml:mrow><mml:mover><mml:mi>x</mml:mi><mml:mo stretchy="false">&#x00AF;</mml:mo></mml:mover></mml:mrow><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mtext>&#x00A0;</mml:mtext></mml:mrow></mml:math>
</inline-formula> is the mean of the individual-level independent variable <inline-formula id="ieqn-4">
<mml:math id="mml-ieqn-4"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> in the jth province.</p>
<p><disp-formula id="eqn-1"><label>(1)</label>
<mml:math id="mml-eqn-1" display="block"><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>0</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03F5;</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-2"><label>(2)</label>
<mml:math id="mml-eqn-2" display="block"><mml:mrow><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>0</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>00</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>01</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mi>x</mml:mi><mml:mrow><mml:msubsup><mml:mo>&#x00A0;</mml:mo><mml:mi>j</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msubsup></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>02</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mover><mml:mi>x</mml:mi><mml:mo stretchy="false">&#x00AF;</mml:mo></mml:mover></mml:mrow><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03BC;</mml:mi><mml:mrow><mml:mn>0</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-3"><label>(3)</label>
<mml:math id="mml-eqn-3" display="block"><mml:mrow><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>10</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>11</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mi>x</mml:mi><mml:mrow><mml:msubsup><mml:mo>&#x00A0;</mml:mo><mml:mi>j</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msubsup></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03B3;</mml:mi><mml:mrow><mml:mn>12</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mover><mml:mi>x</mml:mi><mml:mo stretchy="false">&#x00AF;</mml:mo></mml:mover></mml:mrow><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03BC;</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
</sec>
</sec>
<sec id="s3">
<title>Results</title>
<sec id="s3_1">
<title>Effect of online social networking</title>
<p>OLS regression was used to analyze the effect of online social networking on emotional status. As shown in <xref ref-type="table" rid="table-2">Table 2</xref>, the two dimensions of online social networking, online social support and online information sources, are positively and significantly related to emotional status. The standardized regression coefficients (B) indicates that after eliminating the influence of value range, the coefficient of online social support is larger than that of online information sources. In other words, individuals&#x2019; online social support during the pandemic had a greater effect on emotional status than online information sources. Among the control variables, going out had a significant negative impact on emotional status. During the pandemic, quarantine and mobility restrictions were widely implemented across the country. People who had to go out for any reason faced a much higher risk of infection than others, leading them to feel more insecure and anxious. Males had a more positive emotional status than females. The unemployed group, who faced greater pressure during the pandemic, had a more negative emotional status than the employed.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption><title>Effect of online networking on emotional status (n &#x003D; 2,983)</title></caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Variables</th>
<th>B</th>
<th>se</th>
<th>t</th>
<th><italic>p</italic></th>
<th>LLCI</th>
<th>ULCI</th>
</tr>
</thead>
<tbody>
<tr>
<td>Online social support</td>
<td>0.16&#x002A;</td>
<td>0.07</td>
<td>2.30</td>
<td>0.02</td>
<td>0.02</td>
<td>0.30</td>
</tr>
<tr>
<td>Online information sources</td>
<td>0.08&#x002A;&#x002A;</td>
<td>0.03</td>
<td>2.65</td>
<td>0.01</td>
<td>0.02</td>
<td>0.13</td>
</tr>
<tr>
<td>Going out</td>
<td>&#x2212;0.01&#x002A;&#x002A;&#x002A;</td>
<td>0.00</td>
<td>&#x2212;5.28</td>
<td>0.00</td>
<td>&#x2212;0.01</td>
<td>&#x2212;0.01</td>
</tr>
<tr>
<td>Gender</td>
<td>0.15&#x002A;</td>
<td>0.07</td>
<td>2.13</td>
<td>0.03</td>
<td>0.01</td>
<td>0.28</td>
</tr>
<tr>
<td>Age</td>
<td>0.03</td>
<td>0.02</td>
<td>1.19</td>
<td>0.23</td>
<td>&#x2212;0.02</td>
<td>0.07</td>
</tr>
<tr>
<td>Age^2/100</td>
<td>&#x2212;0.03</td>
<td>0.03</td>
<td>&#x2212;1.04</td>
<td>0.30</td>
<td>&#x2212;0.09</td>
<td>0.03</td>
</tr>
<tr>
<td>Education 2. College</td>
<td>0.14</td>
<td>0.09</td>
<td>1.58</td>
<td>0.11</td>
<td>&#x2212;0.03</td>
<td>0.31</td>
</tr>
<tr>
<td>3. Masters</td>
<td>&#x2212;0.07</td>
<td>0.15</td>
<td>&#x2212;0.45</td>
<td>0.65</td>
<td>&#x2212;0.37</td>
<td>0.23</td>
</tr>
<tr>
<td>Occupation 1. Self-employed</td>
<td>0.01</td>
<td>0.12</td>
<td>0.06</td>
<td>0.95</td>
<td>&#x2212;0.23</td>
<td>0.24</td>
</tr>
<tr>
<td>3. Blue collar</td>
<td>0.01</td>
<td>0.09</td>
<td>0.13</td>
<td>0.90</td>
<td>&#x2212;0.16</td>
<td>0.18</td>
</tr>
<tr>
<td>4. Jobless</td>
<td>&#x2212;0.35&#x002A;&#x002A;</td>
<td>0.12</td>
<td>&#x2212;3.03</td>
<td>0.00</td>
<td>&#x2212;0.58</td>
<td>&#x2212;0.13</td>
</tr>
<tr>
<td>Household income (Logarithm)</td>
<td>&#x2212;0.03</td>
<td>0.03</td>
<td>&#x2212;0.95</td>
<td>0.35</td>
<td>&#x2212;0.09</td>
<td>0.03</td>
</tr>
<tr>
<td>Weight</td>
<td>5.69</td>
<td>4.11</td>
<td>1.39</td>
<td>0.17</td>
<td>&#x2212;2.36</td>
<td>13.74</td>
</tr>
</tbody>
</table>

<table-wrap-foot>
<fn id="table-2fn1" fn-type="other">
<p>Note: Standard errors in parentheses; &#x002A;&#x002A;&#x002A;<italic>p</italic> &#x003C; 0.001, &#x002A;&#x002A;<italic>p</italic> &#x003C; 0.01, &#x002A;<italic>p</italic> &#x003C; 0.05.</p>
</fn>
</table-wrap-foot>
</table-wrap>
</sec>
<sec id="s3_2">
<title>Interaction between online social networking and social status</title>
<p>To investigate group differences in the effect of online social networking on emotional status, we included interactions with three status variables: occupation type, education level, and family income, based on the OLS model (see <xref ref-type="table" rid="table-3">Table 3</xref>). Occupation type was coded as a four-category variable (self-employed, white-collar, blue-collar, and unemployed). Education level was a binary variable, where 1 represented not having attended university and 0 represented having attended university (including junior college). Household income was a three-category variable.</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption><title>Interaction between online social networking and social status (n &#x003D; 2,983)</title></caption>
<alternatives>
<graphic mimetype="image" mime-subtype="tif" xlink:href="table-3.tif"/>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Variables</th>
<th>B</th>
<th>se</th>
<th>t</th>
<th><italic>p</italic></th>
<th>LLCI</th>
<th>ULCI</th>
</tr>
</thead>
<tbody>
<tr>
<td>Online social support &#x00D7; no college</td>
<td>0.31</td>
<td>0.167</td>
<td>2.79</td>
<td>0.005</td>
<td>0.02</td>
<td>0.14</td>
</tr>
<tr>
<td>Online social support &#x00D7; self employed</td>
<td>0.24</td>
<td>0.24</td>
<td>1.02</td>
<td>0.307</td>
<td>&#x2212;0.22</td>
<td>0.70</td>
</tr>
<tr>
<td>Online social support &#x00D7; blue collar</td>
<td>0.21</td>
<td>0.17</td>
<td>0.47</td>
<td>0.636</td>
<td>&#x2212;0.25</td>
<td>0.41</td>
</tr>
<tr>
<td>Online social support &#x00D7; jobless</td>
<td>0.08</td>
<td>0.20</td>
<td>1.09</td>
<td>0.275</td>
<td>&#x2212;0.17</td>
<td>0.60</td>
</tr>
<tr>
<td>Online social support &#x00D7; high income</td>
<td>&#x2212;0.30</td>
<td>0.17</td>
<td>&#x2212;1.75</td>
<td>0.081</td>
<td>&#x2212;0.64</td>
<td>0.04</td>
</tr>
<tr>
<td>Online social support &#x00D7; low income</td>
<td>0.13</td>
<td>0.21</td>
<td>0.61</td>
<td>0.544</td>
<td>&#x2212;0.29</td>
<td>0.54</td>
</tr>
<tr>
<td>Information sources &#x00D7; no college</td>
<td>0.25&#x002A;&#x002A;&#x002A;</td>
<td>0.07</td>
<td>3.83</td>
<td>0.00</td>
<td>0.12</td>
<td>0.38</td>
</tr>
<tr>
<td>Information sources &#x00D7; self employed</td>
<td>0.25&#x002A;&#x002A;</td>
<td>0.09</td>
<td>2.73</td>
<td>0.01</td>
<td>0.07</td>
<td>0.44</td>
</tr>
<tr>
<td>Information sources &#x00D7; blue collar</td>
<td>0.14&#x002A;</td>
<td>0.07</td>
<td>1.99</td>
<td>0.05</td>
<td>0.00</td>
<td>0.27</td>
</tr>
<tr>
<td>Information sources &#x00D7; jobless</td>
<td>0.41&#x002A;&#x002A;&#x002A;</td>
<td>0.08</td>
<td>5.16</td>
<td>0.00</td>
<td>0.25</td>
<td>0.56</td>
</tr>
<tr>
<td>Information sources &#x00D7; high income</td>
<td>0.03</td>
<td>0.09</td>
<td>0.39</td>
<td>0.70</td>
<td>&#x2212;0.14</td>
<td>0.20</td>
</tr>
<tr>
<td>Information sources &#x00D7; low income</td>
<td>0.22&#x002A;&#x002A;</td>
<td>0.07</td>
<td>3.09</td>
<td>0.00</td>
<td>0.08</td>
<td>0.35</td>
</tr>
</tbody>
</table>
</alternatives>
<table-wrap-foot>
<fn id="table-3fn1" fn-type="other">
<p>Note: &#x002A;&#x002A;&#x002A;<italic>p</italic> &#x003C; 0.001, &#x002A;&#x002A;<italic>p</italic> &#x003C; 0.01, &#x002A;<italic>p</italic> &#x003C; 0.05.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>As shown in <xref ref-type="table" rid="table-3">Table 3</xref>, there is no significant moderation effect of education, occupation, or income on the relationship between online social support and emotional status. This means there were no class differences in the effect of emotional support on positive attitudes during the quarantine. However, the interaction terms between online information sources and the three status variables are significantly positive. This indicates that the positive influence of online information sources on emotional status was stronger for lower occupational status, lower-educated, and low-income groups. There is clearly an interaction between online information sources and individual social status.</p>
</sec>
<sec id="s3_3">
<title>Interaction between online social networking and risk management</title>
<p>In <xref ref-type="table" rid="table-4">Table 4</xref>, we tested the influence of provincial-level factors and their interactions with online social networking. The provincial-level independent variables included cumulative confirmed cases, population inflow from epidemic areas, and post-pandemic recovery. Since sample sizes varied between provinces, the average emotional status for each province might have been affected by different sample sizes. To reduce the influence of unbalanced samples from different provinces, a weight was calculated based on the ratio of sample size to the population size in each province. The population weight of each province was then controlled in the multilevel models.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption><title>Interaction between online social networking and provincial factors (n &#x0003D; 2,983)</title></caption>
<alternatives>
<graphic mimetype="image" mime-subtype="tif" xlink:href="table-4.tif"/>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Variables</th>
<th>B</th>
<th>se</th>
<th>t</th>
<th><italic>p</italic></th>
<th>LLCI</th>
<th>ULCI</th>
</tr>
</thead>
<tbody>
<tr>
<td>Online social support</td>
<td>0.16&#x002A;</td>
<td>0.07</td>
<td>2.33</td>
<td>0.02</td>
<td>0.03</td>
<td>0.30</td>
</tr>
<tr>
<td>Information sources</td>
<td>0.08&#x002A;&#x002A;</td>
<td>0.03</td>
<td>2.83</td>
<td>0.01</td>
<td>0.02</td>
<td>0.14</td>
</tr>
<tr>
<td>ConfIrmed cases</td>
<td>&#x2212;0.08&#x002A;&#x002A;&#x002A;</td>
<td>0.02</td>
<td>&#x2212;4.01</td>
<td>0.00</td>
<td>&#x2212;0.12</td>
<td>&#x2212;0.04</td>
</tr>
<tr>
<td>Population inflow</td>
<td>&#x2212;0.51&#x002A;&#x002A;&#x002A;</td>
<td>0.15</td>
<td>16.59</td>
<td>0.00</td>
<td>6.17</td>
<td>7.82</td>
</tr>
<tr>
<td>Recovery</td>
<td>0.02&#x002A;</td>
<td>0.07</td>
<td>2.55</td>
<td>0.01</td>
<td>0.04</td>
<td>0.32</td>
</tr>
<tr>
<td>Online social support &#x00D7; confirmed cases</td>
<td>&#x2212;0.17&#x002A;&#x002A;&#x002A;</td>
<td>0.04</td>
<td>&#x2212;4.57</td>
<td>0.00</td>
<td>&#x2212;0.24</td>
<td>&#x2212;0.10</td>
</tr>
<tr>
<td>Online social support &#x00D7; population inflow</td>
<td>&#x2212;1.09&#x002A;&#x002A;&#x002A;</td>
<td>0.28</td>
<td>&#x2212;3.87</td>
<td>0.00</td>
<td>&#x2212;1.65</td>
<td>&#x2212;0.54</td>
</tr>
<tr>
<td>Online social support &#x00D7; recovery</td>
<td>0.52&#x002A;&#x002A;&#x002A;</td>
<td>0.13</td>
<td>3.91</td>
<td>0.00</td>
<td>0.26</td>
<td>0.78</td>
</tr>
<tr>
<td>Information sources &#x00D7; confirmed cases</td>
<td>&#x2212;0.02</td>
<td>0.02</td>
<td>&#x2212;0.88</td>
<td>0.38</td>
<td>&#x2212;0.05</td>
<td>0.02</td>
</tr>
<tr>
<td>Information sources &#x00D7; population inflow</td>
<td>&#x2212;0.04</td>
<td>0.14</td>
<td>&#x2212;0.27</td>
<td>0.79</td>
<td>&#x2212;0.32</td>
<td>0.24</td>
</tr>
<tr>
<td>Information sources &#x00D7; recovery</td>
<td>0.09</td>
<td>0.05</td>
<td>1.77</td>
<td>0.07</td>
<td>&#x2212;0.01</td>
<td>0.20</td>
</tr>
</tbody>
</table>
</alternatives>
<table-wrap-foot>
<fn id="table-4fn1" fn-type="other">
<p>Note: &#x002A;&#x002A;&#x002A;<italic>p</italic> &#x003C; 0.001, &#x002A;&#x002A;<italic>p</italic> &#x003C; 0.01, &#x002A;<italic>p</italic> &#x003C; 0.05.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Due to space limitations, we only present coefficients for the main independent variables and interaction terms in <xref ref-type="table" rid="table-4">Table 4</xref>. However, readers interested in obtaining complete results may request them from the authors.</p>
<p>As shown in <xref ref-type="table" rid="table-4">Table 4</xref>, confirmed cases in each province had a significant negative impact (B &#x003D; &#x2212;0.08, <italic>p</italic>-value &#x003C; 0.001) on the emotional status of Internet users in the province. Inflows of people from Wuhan had a significant negative impact (B &#x003D; &#x2212;0.51, <italic>p</italic>-value &#x003C; 0.001) on the emotional status of residents in each province. Specifically, the large influx of people from Wuhan created anxiety and fear among the local population. On the other hand, post-pandemic recovery efforts had a significant positive effect (B &#x003D; 0.02, <italic>p</italic>-value: 0.01) on individuals&#x2019; emotional status across all provinces. This suggests that normalization of travel within provinces has contributed to increased positivity among people.</p>
<p>The significantly negative interaction term between social support and confirmed cases indicates that social support amplified the negative impact of confirmed cases on emotional status. In the early phases of the pandemic, online communication between acquaintances functioned as an amplifier, as people reinforced each other&#x2019;s anxiety and fear of infection. Likewise, the significantly negative interaction of online social support and population inflow indicates that online networking between acquaintances amplified the negative impact of population inflows from Wuhan on emotional status. The significantly positive interaction between online social support and recovery indicates that online social support enhanced the positive impact of post-pandemic recovery on emotional status.</p>
<p>The interactions between online information sources and provincial factors show that none of the interaction terms are significant. That is, the richness of online information channels and provincial risk management had independent effects on Internet users&#x2019; emotional status, and the impact of online information sources on emotional status did not vary because of differences in confirmed cases, population inflows from Wuhan, or the recovery of normal life across 31 provinces.</p>
</sec>
</sec>
<sec id="s4">
<title>Discussion</title>
<p>This study tested the impact of two dimensions of online social networking, online social support and online information sources, on emotional status in the early stage of the COVID-19 pandemic. It also analyzed how the effect was moderated by individual social status and provincial factors. The results supported hypothesis 1.1, showing positive effects of online networking on emotional status. This is consistent with some existing research [<xref ref-type="bibr" rid="ref-8">8</xref>,<xref ref-type="bibr" rid="ref-9">9</xref>]. Previous research that identified negative effects on emotional status and mental health has primarily focused on individuals&#x2019; networking behaviors but often failed to differentiate between different dimensions and mechanisms of social networking [<xref ref-type="bibr" rid="ref-10">10</xref>,<xref ref-type="bibr" rid="ref-11">11</xref>].</p>
<p>Regarding online social support, some research found that online interaction can promote feelings of connection [<xref ref-type="bibr" rid="ref-18">18</xref>], and both giving and receiving social support through online communication can significantly improve an individual&#x2019;s mental health [<xref ref-type="bibr" rid="ref-35">35</xref>]. Regarding online information sources, a survey of WeChat users in China found that high heterogeneity in information sources during the pandemic made it easier for people to maintain their health and positive emotional status [<xref ref-type="bibr" rid="ref-20">20</xref>]. Studies of &#x201C;echo chambers&#x201D; have shown that recommendation algorithms on social media platforms tend to homogenize the information people receive [<xref ref-type="bibr" rid="ref-36">36</xref>]. These echo chambers make it unlikely that people will hear different voices, strengthening existing prejudices [<xref ref-type="bibr" rid="ref-37">37</xref>]. In contrast, the heterogeneity of information channels leads to a variety of information content, which played a very important role in avoiding extreme mental states and maintaining optimism during COVID-19 quarantines. Our research finding on Chinese WeChat users corroborates these observations and goes further.</p>
<p>Among the two dimensions of online networking, the positive effect of online social support is stronger, supporting hypothesis 1.2. This might be explained by the deeply embedded culture of guanxi in Chinese society. Online social support, which helps to maintain offline relationships, allows relatives, close friends, and acquaintances to provide help and reduce pressure. Chinese people grow up in a relationship culture and rely on family and acquaintances for emotional support [<xref ref-type="bibr" rid="ref-38">38</xref>]. Communication with members of one&#x2019;s core network is more helpful than information in providing emotional support and staying positive during lock-downs.</p>
<p>Another interesting finding is the different moderating mechanisms underlying the effects of social support and online information sources. The positive effect of social support is moderated by provincial risk management, not by social status. Hypothesis 2.2 is supported, but hypothesis 2.1 is not. The positive effect of online information sources is moderated by social status, not by provincial risk management. Hypothesis 3.1 is supported but hypothesis 3.2 is not. These differences have received inadequate attention yet can be explained by the characteristics of online networking and Chinese culture as follows.</p>
<p>For social status, the positive effect of online social support is relatively uniform among different classes. Lin Nan pointed out that emotional communication often occurs between individuals with homogeneous social status [<xref ref-type="bibr" rid="ref-39">39</xref>]. Since emotional support mainly comes from interpersonal trust, self-disclosure, and psychological support between individuals and their contacts, its positive psychological effect is widely observed within and between social classes. However, the influence of online information sources on emotional status is significantly different for different classes [<xref ref-type="bibr" rid="ref-5">5</xref>,<xref ref-type="bibr" rid="ref-40">40</xref>]. How the use of social media affects emotional status or mental health is related to an individual&#x2019;s digital capability and technical skills, and is also embedded in an individual&#x2019;s position in a stratified social system [<xref ref-type="bibr" rid="ref-25">25</xref>]. Our findings indicate that individuals with lower levels of education, income, and occupational status are more likely to benefit from the positive impact of online information sources. Due to their cultural and economic capital, socially dominant groups have stronger digital skills [<xref ref-type="bibr" rid="ref-41">41</xref>]. Therefore, their online sources to information about the COVID-19 has relatively small impact on their emotional status. However, disadvantaged groups have weaker digital literacy, thus diversified online information sources play a very important role in helping them avoid extreme emotions and stay positive during the pandemic.</p>
<p>Regarding provincial factors, a new finding is that online social support exemplifies either the positive or the negative provincial factors&#x2019; impact on emotional status. Nevertheless, online information sources have no such interaction with provincial-level offline reality. The effect of online social support on emotional status is moderated by the province&#x2019;s risk management. In provinces with more confirmed cases and larger population inflow from epidemic areas, the positive effect of online social support seems weaker. In provinces with better post-COVID-19 recovery, the positive effect of online social support is stronger. Differences in provincial management led to differences in the emotional status of residents in each province [<xref ref-type="bibr" rid="ref-42">42</xref>]. One possible explanation is that online social support mainly comes from relatives, friends, and acquaintances [<xref ref-type="bibr" rid="ref-20">20</xref>]. Therefore, when gossip about local risk management disseminated together with emotional support through these dense networks [<xref ref-type="bibr" rid="ref-43">43</xref>,<xref ref-type="bibr" rid="ref-44">44</xref>], it is also more easily affected by offline realities and thus clearly moderated by regional differences. On the contrary, online information is transmitted rapidly and is trans-regional. Thus, the richness of online information sources and its impact on emotional status are less influenced by offline governance practices.</p>
<p>This study makes significant contributions to the research field in several aspects. Firstly, it adopts a social capital theory and information society perspective, which is relatively rare in previous studies. Our analysis confirms the positive effect of social support and information sources on emotional status during quarantines, and further depicts the different effect size of these two dimensions. Second, this study extends the scope of online social networking functions and mechanisms. We distinguish between two dimensions of social networking, and reveal subtle difference in their impact on emotional status. We demonstrate that the beneficial impact of online social networking on mental well-being is contingent upon various contextual factors, such as social structure and policies. Furthermore, this study integrates both provincial- and individual-level variables to examine the interplay between virtual and physical spaces. Fourth, the combination of online human behavior big data with survey data will become common in future research [<xref ref-type="bibr" rid="ref-45">45</xref>]. This study represents a valuable endeavor in integrating various forms of data sources.</p>
<p>This study identifies three potential research directions for future investigations. First, exploring different structural dimensions of online social networking based on theoretical integration. Second, interdisciplinary collaboration across fields such as psychology, sociology, communication, public health, and related disciplines could further explore the relationship between online social networking and emotional status. Such collaborations could foster theoretical integration and lead to practical solutions. Lastly, utilizing big data collected from online platforms such as social media, instant messaging applications, online consultations, and search engines to conduct data mining and index construction. This approach can provide empirical data support for theoretical innovation in this field.</p>
<p>The outbreak of COVID-19 has significantly transformed human behavior and altered the dynamics of social interaction in today&#x2019;s information-driven society. The experience of Chinese Internet users during the initial phase of the pandemic offers valuable insights into responding to public health emergencies in other regions undergoing transformation. Firstly, policymakers must pay attention to the emotional effect of online social networking and various anti-pandemic measures. Online networking operates through complex mechanisms during times of pandemic outbreak. Secondly, in societies such as China, social support from loved ones, acquaintances, and friends is the most robust psychological resource for individuals to combat a public health crisis. Social networks should be safeguarded during quarantines and mobility restrictions. Thirdly, facilitating internet access and enhancing digital literacy among marginalized groups could reinforce the constructive impact of online information sources on emotional well-being. Lastly, the psychological impact of social support is subject to moderation by provincial interventions. This indicates that residents&#x2019; comprehension of regional anti-pandemic measures is strongly influenced by their family and close acquaintances. Therefore, these interventions and their outcomes must be more effectively disseminated through official channels to prevent misconceptions and the propagation of false information [<xref ref-type="bibr" rid="ref-46">46</xref>]. Taken together, all of these factors should be taken into account to enhance the beneficial effects of online networking on emotional well-being and alleviate its adverse consequences.</p>
</sec>
<sec id="s5">
<title>Conclusion</title>
<p>Several conclusions can be drawn from the results. Firstly, this analysis finds further evidence and more detail for the positive correlation between online networking and emotional status. Among the two dimensions of online networking, the positive effect of online social support is stronger than that of online information sources. Secondly, the practice of risk management at the provincial level also shapes residents&#x2019; emotional status. Thirdly, the positive effect of online information sources on emotional status is moderated by individuals&#x2019; social status, and the impact of online social support on emotional status is moderated by provincial risk management.</p>
<p>However, this study is subject to certain limitations. Firstly, the sample of WeChat users may not be entirely representative of the population in each province due to data constraints. Although various measures, such as population weight, were employed to address this issue, it cannot be fully overcome. Secondly, the conclusions may not be generalizable to all Chinese Internet users, as they are not based on a strict random sample. Future studies can address these problems by constructing larger sample pools and expanding online data sources. New measures like matching questionnaire respondents&#x2019; survey data with their online behavior data can be used to improve the validity of the research.</p>
<p>In summary, the diverse dimensions of online social networking can influence emotional status and interact with real-life situations via distinct mechanisms. These factors and mechanisms should be considered when designing and adjusting pandemic-control interventions. This study advocates for a range of strategies to mitigate the negative impact of future pandemic threats on emotional status and mental health. For instance, supporting online interactions with family, friends, and acquaintances; safeguarding social networks during quarantine measures; improving internet access and digital literacy among disadvantaged groups; and staying vigilant regarding the emotional status and psychological reactions of individuals subject to various local interventions. A comprehensive strategy that encompasses online-offline and provincial-individual level interactions should be developed when formulating emergency responses to public health crises.</p>
</sec>
</body>
<back>
<sec>
<title>Funding Statement</title>
<p>This research was funded by &#x201C;the Fundamental Research Funds for the Central Universities, Grant Number XJSJ23180&#x201D;, <ext-link ext-link-type="uri" xlink:href="https://www.xidian.edu.cn/index.htm">https://www.xidian.edu.cn/index.htm</ext-link>; and &#x201C;Shaanxi Province Philosophy and Social Science Research Project, Grant Number 2023QN0046&#x201D;, <ext-link ext-link-type="uri" xlink:href="http://www.sxsskw.org.cn/">http://www.sxsskw.org.cn/</ext-link>; Author Xiaolin Lu received these two funding.</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>The authors confirm contribution to the paper as follows: study conception and design: Xiaolin Lu; data collection: Xiaolin Lu, Xiaolei Miao; analysis and interpretation of results: Xiaolin Lu, Xiaolei Miao; draft manuscript preparation: Xiaolin Lu. All authors reviewed the results and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>The COVID-19 data used in this study are provided by the Chinese Center for Disease Prevention and Control at <ext-link ext-link-type="uri" xlink:href="https://www.chinacdc.cn/">https://www.chinacdc.cn/</ext-link>. For the control variables, weight is calculated using provincial population, which is available in the &#x201C;National Data&#x201D; collected by the Chinese National Bureau of Statistics at <ext-link ext-link-type="uri" xlink:href="https://data.stats.gov.cn/easyquery.htm?cn=E0103">https://data.stats.gov.cn/easyquery.htm?cn=E0103</ext-link>. The Baidu population flow data were crawled from the Baidu Qianxi platform at <ext-link ext-link-type="uri" xlink:href="https://qianxi.baidu.com/#/">https://qianxi.baidu.com/#/</ext-link>. The WeChat survey data are available on request from the corresponding author.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare that they have no conflicts of interest to report regarding the present study.</p>
</sec>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>1.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Fong</surname> <given-names>MW</given-names></string-name>, <string-name><surname>Gao</surname> <given-names>H</given-names></string-name>, <string-name><surname>Wong</surname> <given-names>JY</given-names></string-name>, <string-name><surname>Xiao</surname> <given-names>J</given-names></string-name>, <string-name><surname>Shiu</surname> <given-names>EYC</given-names></string-name>, <string-name><surname>Ryu</surname> <given-names>S</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Nonpharmaceutical measures for pandemic influenza in nonhealthcare settings-social distancing measures</article-title>. <source>Emerg Infect Dis</source> [Internet]. <year>2020</year>;<volume>26</volume>(<issue>5</issue>):<fpage>976</fpage>&#x2013;<lpage>84</lpage>; <pub-id pub-id-type="pmid">32027585</pub-id></mixed-citation></ref>
<ref id="ref-2"><label>2.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ruktanonchai</surname> <given-names>NW</given-names></string-name>, <string-name><surname>Floyd</surname> <given-names>JR</given-names></string-name>, <string-name><surname>Lai</surname> <given-names>S</given-names></string-name>, <string-name><surname>Ruktanonchai</surname> <given-names>CW</given-names></string-name>, <string-name><surname>Sadilek</surname> <given-names>A</given-names></string-name>, <string-name><surname>Rente-Lourenco</surname> <given-names>P</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Assessing the impact of coordinated COVID-19 exit strategies across Europe</article-title>. <source>Science</source> [Internet]. <year>2020</year>;<volume>369</volume>(<issue>6510</issue>):<fpage>1465</fpage>&#x2013;<lpage>70</lpage>; <pub-id pub-id-type="pmid">32680881</pub-id></mixed-citation></ref>
<ref id="ref-3"><label>3.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hwang</surname> <given-names>T</given-names></string-name>, <string-name><surname>Rabheru</surname> <given-names>K</given-names></string-name>, <string-name><surname>Peisah</surname> <given-names>C</given-names></string-name>, <string-name><surname>Reichman</surname> <given-names>W</given-names></string-name>, <string-name><surname>Ikeda</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Loneliness and social isolation during the COVID-19 pandemic</article-title>. <source>Int Psychogeriatr</source> [Internet]. <year>2020</year>;<volume>32</volume>(<issue>10</issue>):<fpage>1217</fpage>&#x2013;<lpage>20</lpage>; <pub-id pub-id-type="pmid">32450943</pub-id></mixed-citation></ref>
<ref id="ref-4"><label>4.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sayin Kasar</surname> <given-names>K</given-names></string-name>, <string-name><surname>Karaman</surname> <given-names>E</given-names></string-name></person-group>. <article-title>Life in lockdown: Social isolation, loneliness and quality of life in the elderly during the COVID-19 pandemic: A scoping review</article-title>. <source>Geriatr Nurs</source> [Internet]. <year>2021</year>;<volume>42</volume>(<issue>5</issue>):<fpage>1222</fpage>&#x2013;<lpage>29</lpage>; <pub-id pub-id-type="pmid">33824008</pub-id></mixed-citation></ref>
<ref id="ref-5"><label>5.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Xiao</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Bian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Mental health of Chinese online networkers under COVID-19: A sociological analysis of survey data</article-title>. <source>Int J Env Res Pub He</source> [Internet]. <year>2020</year>;<volume>17</volume>(<issue>23</issue>):<fpage>8843</fpage>.</mixed-citation></ref>
<ref id="ref-6"><label>6.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Marseglia</surname> <given-names>A</given-names></string-name>, <string-name><surname>Shang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Dintica</surname> <given-names>C</given-names></string-name>, <string-name><surname>Patrone</surname> <given-names>C</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>W</given-names></string-name></person-group>. <article-title>Leisure activity and social integration mitigate the risk of dementia related to cardiometabolic diseases: A population-based longitudinal study</article-title>. <source>Alzheimer&#x2019;s &#x0026; Dement</source> [Internet]. <year>2020</year>;<volume>16</volume>(<issue>2</issue>):<fpage>316</fpage>&#x2013;<lpage>25</lpage>.</mixed-citation></ref>
<ref id="ref-7"><label>7.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Song</surname> <given-names>L</given-names></string-name>, <string-name><surname>Ge</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>X</given-names></string-name></person-group>. <article-title>The relationship between WeChat use by Chinese urban older adults living alone and their subjective well-being: The mediation role of intergenerational support and social activity</article-title>. <source>Psychol Res Behav Manag</source> [Internet]. <year>2021</year>;<volume>14</volume>:<fpage>1543</fpage>&#x2013;<lpage>54</lpage>; <pub-id pub-id-type="pmid">34629911</pub-id></mixed-citation></ref>
<ref id="ref-8"><label>8.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Li</surname> <given-names>X</given-names></string-name>, <string-name><surname>L&#x00FC;</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Tang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Li</surname> <given-names>HR</given-names></string-name>, <string-name><surname>Tang</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Effect of WeChat consultation group on residents staying at home in Sichuan and Chongqing regions during the coronavirus disease 2019 (COVID-19) outbreak in China: A cross-sectional study</article-title>. <source>BMC Public Health</source> [Internet]. <year>2020</year>;<volume>20</volume>(<issue>1</issue>):<fpage>1815</fpage>; <pub-id pub-id-type="pmid">33256700</pub-id></mixed-citation></ref>
<ref id="ref-9"><label>9.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Li</surname> <given-names>J</given-names></string-name>, <string-name><surname>Zhou</surname> <given-names>L</given-names></string-name>, <string-name><surname>van der Heijden</surname> <given-names>B</given-names></string-name>, <string-name><surname>Li</surname> <given-names>S</given-names></string-name>, <string-name><surname>Tao</surname> <given-names>H</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>AZ</given-names></string-name></person-group>. <article-title>Social isolation, loneliness and well-being-the impact of WeChat use intensity during the COVID-19 pandemic in China</article-title>. <source>Front Psychol</source> [Internet]. <year>2021</year>;<volume>12</volume>:<fpage>176</fpage>.</mixed-citation></ref>
<ref id="ref-10"><label>10.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Lin</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Prevalence of internet addiction during the COVID-19 outbreak and its risk factors among junior high school students in Taiwan</article-title>. <source>Int J Env Res Pub He</source> [Internet]. <year>2020</year>;<volume>17</volume>(<issue>22</issue>):<fpage>8547</fpage>.</mixed-citation></ref>
<ref id="ref-11"><label>11.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Gonz&#x00E1;lez-Padilla</surname> <given-names>DA</given-names></string-name>, <string-name><surname>Tortolero-Blanco</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Social media influence in the COVID-19 pandemic</article-title>. <source>Int Braz J Urol</source> [Internet]. <year>2020</year>;<volume>46</volume>(<issue>S1</issue>):<fpage>120</fpage>&#x2013;<lpage>24</lpage>.</mixed-citation></ref>
<ref id="ref-12"><label>12.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Putnam</surname> <given-names>RD</given-names></string-name></person-group>. <source>Bowling Alone: the collapse and revival of American community</source> [Internet]. <publisher-loc>New York</publisher-loc>: <publisher-name>Touchstone</publisher-name>; <year>2001</year>.</mixed-citation></ref>
<ref id="ref-13"><label>13.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Granovetter</surname> <given-names>M</given-names></string-name></person-group>. <article-title>The strength of weak ties</article-title>. <source>Am J Sociol</source> [Internet]. <year>1978</year>;<volume>78</volume>(<issue>6</issue>):<fpage>1360</fpage>&#x2013;<lpage>80</lpage>.</mixed-citation></ref>
<ref id="ref-14"><label>14.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ellison</surname> <given-names>NB</given-names></string-name>, <string-name><surname>Steinfield</surname> <given-names>C</given-names></string-name>, <string-name><surname>Lampe</surname> <given-names>C</given-names></string-name></person-group>. <article-title>The benefits of facebook &#x201C;Friends:&#x201D; Social capital and college students&#x2019; use of online social network sites</article-title>. <source>J Comput-MEDIAT Comm</source> [Internet]. <year>2007</year>;<volume>12</volume>(<issue>4</issue>):<fpage>1143</fpage>&#x2013;<lpage>68</lpage>.</mixed-citation></ref>
<ref id="ref-15"><label>15.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Williams</surname> <given-names>D</given-names></string-name></person-group>. <article-title>On and off the net: Scales for social capital in an online era</article-title>. <source>J Comput-MEDIAT Comm</source> [Internet]. <year>2006</year>;<volume>11</volume>(<issue>2</issue>):<fpage>593</fpage>&#x2013;<lpage>628</lpage>.</mixed-citation></ref>
<ref id="ref-16"><label>16.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Ang</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Guanxi networks and job mobility in China and Singapore</article-title>. <source>Soc Forces</source> [Internet]. <year>1997</year>;<volume>75</volume>(<issue>3</issue>):<fpage>981</fpage>&#x2013;<lpage>1005</lpage>.</mixed-citation></ref>
<ref id="ref-17"><label>17.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>L</given-names></string-name>, <string-name><surname>Gao</surname> <given-names>Y</given-names></string-name></person-group>. <article-title>Social bonding and subjective well-being: Findings from the 2017 ISSP module</article-title>. <source>Int J Sociol</source> [Internet]. <year>2020</year>;<volume>50</volume>(<issue>1</issue>):<fpage>26</fpage>&#x2013;<lpage>47</lpage>.</mixed-citation></ref>
<ref id="ref-18"><label>18.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bavel</surname> <given-names>JJV</given-names></string-name>, <string-name><surname>Baicker</surname> <given-names>K</given-names></string-name>, <string-name><surname>Boggio</surname> <given-names>PS</given-names></string-name>, <string-name><surname>Capraro</surname> <given-names>V</given-names></string-name>, <string-name><surname>Cichocka</surname> <given-names>A</given-names></string-name>, <string-name><surname>Cikara</surname> <given-names>M</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Using social and behavioural science to support COVID-19 pandemic response</article-title>. <source>Nat Hum Behav</source> [Internet]. <year>2020</year>;<volume>4</volume>(<issue>5</issue>):<fpage>460</fpage>&#x2013;<lpage>71</lpage>; <pub-id pub-id-type="pmid">32355299</pub-id></mixed-citation></ref>
<ref id="ref-19"><label>19.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Erubami</surname> <given-names>JA</given-names></string-name>, <string-name><surname>Bebenimibo</surname> <given-names>P</given-names></string-name>, <string-name><surname>Ugwuoke</surname> <given-names>JC</given-names></string-name></person-group>. <article-title>Social media use and COVID-19 risk perception among Nigerians: The roles of affects, gender and information sources</article-title>. <source>Media Watch</source> [Internet]. <year>2021</year>;<volume>12</volume>(<issue>2</issue>):<fpage>316</fpage>&#x2013;<lpage>32</lpage>.</mixed-citation></ref>
<ref id="ref-20"><label>20.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Miao</surname> <given-names>X</given-names></string-name>, <string-name><surname>Lu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Ma</surname> <given-names>X</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>X</given-names></string-name></person-group>. <article-title>The emergence of a COVID-19 related social capital: The case of China</article-title>. <source>Int J Sociol</source> [Internet]. <year>2020</year>;<volume>50</volume>(<issue>5</issue>):<fpage>419</fpage>&#x2013;<lpage>33</lpage>.</mixed-citation></ref>
<ref id="ref-21"><label>21.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Beck</surname> <given-names>U</given-names></string-name></person-group>. <source>Risk society</source> [Internet]. <publisher-loc>London</publisher-loc>: <publisher-name>Sage Publication</publisher-name>; <year>1992</year>.</mixed-citation></ref>
<ref id="ref-22"><label>22.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Katz</surname> <given-names>J</given-names></string-name>, <string-name><surname>Aspden</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Motivations for and barriers to Internet usage: Results of a national public opinion survey</article-title>. <source>Semin Spine Surg</source> [Internet]. <year>1977</year>;<volume>7</volume>(<issue>3</issue>):<fpage>170</fpage>&#x2013;<lpage>88</lpage>.</mixed-citation></ref>
<ref id="ref-23"><label>23.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Burrell</surname> <given-names>J</given-names></string-name>, <string-name><surname>Fourcade</surname> <given-names>M</given-names></string-name></person-group>. <article-title>The society of algorithms</article-title>. <source>Annu Rev Sociol</source> [Internet]. <year>2021</year>;<volume>47</volume>(<issue>1</issue>):<fpage>213</fpage>&#x2013;<lpage>37</lpage>.</mixed-citation></ref>
<ref id="ref-24"><label>24.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Salganik</surname> <given-names>MJ</given-names></string-name></person-group>. <source>Bit by bit</source> [Internet]. <publisher-loc>Princeton</publisher-loc>: <publisher-name>Princeton University Press</publisher-name>; <year>2018</year>.</mixed-citation></ref>
<ref id="ref-25"><label>25.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Sanchuli</surname> <given-names>N</given-names></string-name></person-group>. <article-title>Detrimental effects of COVID-19 measures on mental health and social-economic disparities</article-title>. <source>Int J Ment Health Pr</source> [Internet]. <year>2023</year>;<volume>25</volume>(<issue>1</issue>):<fpage>63</fpage>&#x2013;<lpage>79</lpage>.</mixed-citation></ref>
<ref id="ref-26"><label>26.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wu</surname> <given-names>C</given-names></string-name></person-group>. <article-title>Social capital and COVID-19: A multidimensional and multilevel approach</article-title>. <source>Chinese Sociol Rev</source> [Internet]. <year>2021</year>;<volume>53</volume>(<issue>1</issue>):<fpage>27</fpage>&#x2013;<lpage>54</lpage>.</mixed-citation></ref>
<ref id="ref-27"><label>27.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hensel</surname> <given-names>L</given-names></string-name>, <string-name><surname>Marc</surname> <given-names>W</given-names></string-name>, <string-name><surname>Stefano Caria</surname> <given-names>A</given-names></string-name>, <string-name><surname>Thiemo</surname> <given-names>FC</given-names></string-name>, <string-name><surname>Fiorind</surname> <given-names>S</given-names></string-name>, <string-name><surname>G&#x00F6;tz</surname> <given-names>FM</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Global behaviors and perceptions at the onset of the COVID-19 pandemic</article-title>. <source>J Econ Behav Organ</source> [Internet]. <year>2022</year>;<volume>193</volume>(<issue>1</issue>):<fpage>473</fpage>&#x2013;<lpage>96</lpage>; <pub-id pub-id-type="pmid">34955573</pub-id></mixed-citation></ref>
<ref id="ref-28"><label>28.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Fang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>L</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>Y</given-names></string-name></person-group>. <article-title>Human mobility restrictions and the spread of the novel coronavirus (2019-nCoV) in China</article-title>. <source>J Public Econ</source> [Internet]. <year>2020</year>;<volume>191</volume>(<issue>2</issue>):<fpage>104272</fpage>; <pub-id pub-id-type="pmid">33518827</pub-id></mixed-citation></ref>
<ref id="ref-29"><label>29.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Oh</surname> <given-names>J</given-names></string-name>, <string-name><surname>Lee</surname> <given-names>H</given-names></string-name>, <string-name><surname>Khuong</surname> <given-names>QL</given-names></string-name>, <string-name><surname>Bullen</surname> <given-names>C</given-names></string-name>, <string-name><surname>Barrios</surname> <given-names>O</given-names></string-name>, <string-name><surname>Enrique</surname> <given-names>A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Mobility restrictions were associated with reductions in COVID-19 incidence early in the pandemic: Evidence from a real-time evaluation in 34 countries</article-title>. <source>Sci Rep-UK</source> [Internet]. <year>2021</year>;<volume>11</volume>(<issue>1</issue>):<fpage>13717</fpage>.</mixed-citation></ref>
<ref id="ref-30"><label>30.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>J</given-names></string-name></person-group>. <source>Report on Chinese social mentality</source>. <publisher-loc>Beijing, China</publisher-loc>: <publisher-name>Institute of Sociology, Chinese Academy of Social Sciences</publisher-name>; <year>2021</year>. p. <fpage>89</fpage>.</mixed-citation></ref>
<ref id="ref-31"><label>31.</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab>Tencent Holdings Limited</collab></person-group>. <article-title>2020 annual report</article-title> [Internet]. <year>2021</year>.</mixed-citation></ref>
<ref id="ref-32"><label>32.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ni</surname> <given-names>MY</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>L</given-names></string-name>, <string-name><surname>Candi</surname> <given-names>MC</given-names></string-name>, <string-name><surname>Leung</surname> <given-names>M</given-names></string-name>, <string-name><surname>Li</surname> <given-names>N</given-names></string-name>, <string-name><surname>Yao</surname> <given-names>X</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Mental health toll from the coronavirus social media usage reveals Wuhan residents&#x2019; depression and secondary trauma in the COVID-19 outbreak</article-title>. <source>JMIR Ment Health</source> [Internet]. <year>2020</year>;<volume>7</volume>(<issue>5</issue>):<fpage>106524</fpage>.</mixed-citation></ref>
<ref id="ref-33"><label>33.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Edelmann</surname> <given-names>A</given-names></string-name>, <string-name><surname>Wolff</surname> <given-names>T</given-names></string-name>, <string-name><surname>Montagne</surname> <given-names>D</given-names></string-name>, <string-name><surname>Bail</surname> <given-names>CA</given-names></string-name></person-group>. <article-title>Computational social science and sociology</article-title>. <source>Annu Rev Sociol</source> [Internet]. <year>2020</year>;<volume>46</volume>(<issue>24</issue>):<fpage>61</fpage>&#x2013;<lpage>81</lpage>; <pub-id pub-id-type="pmid">34824489</pub-id></mixed-citation></ref>
<ref id="ref-34"><label>34.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Li</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>L</given-names></string-name></person-group>. <article-title>How to define middle-income group?</article-title> <source>Beijing Soc Sci</source> [Internet]. <year>2017</year>;(<issue>7</issue>):<fpage>4</fpage>&#x2013;<lpage>10</lpage>.</mixed-citation></ref>
<ref id="ref-35"><label>35.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Dor&#x00E9;</surname> <given-names>BP</given-names></string-name>, <string-name><surname>Morris</surname> <given-names>RR</given-names></string-name>, <string-name><surname>Burr</surname> <given-names>DA</given-names></string-name>, <string-name><surname>Picard</surname> <given-names>RW</given-names></string-name>, <string-name><surname>Ochsner</surname> <given-names>KN</given-names></string-name></person-group>. <article-title>Helping others regulate emotion predicts increased regulation of one&#x2019;s own emotions and decreased symptoms of depression</article-title>. <source>Pers Soc Psychol B</source> [Internet]. <year>2017</year>;<volume>43</volume>(<issue>5</issue>):<fpage>729</fpage>&#x2013;<lpage>39</lpage>.</mixed-citation></ref>
<ref id="ref-36"><label>36.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Boutyline</surname> <given-names>A</given-names></string-name>, <string-name><surname>Willer</surname> <given-names>R</given-names></string-name></person-group>. <article-title>The social structure of political echo chambers: Variation in ideological homophily in online networks</article-title>. <source>Polit Psychol</source> [Internet]. <year>2017</year>;<volume>38</volume>(<issue>3</issue>):<fpage>551</fpage>&#x2013;<lpage>69</lpage>.</mixed-citation></ref>
<ref id="ref-37"><label>37.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Baumann</surname> <given-names>F</given-names></string-name>, <string-name><surname>Lorenz-Spreen</surname> <given-names>P</given-names></string-name>, <string-name><surname>Sokolov</surname> <given-names>IM</given-names></string-name>, <string-name><surname>Starnini</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Modeling echo chambers and polarization dynamics in social networks</article-title>. <source>Phys Rev Lett</source> [Internet]. <year>2020</year>;<volume>124</volume>(<issue>4</issue>):<fpage>48301</fpage>.</mixed-citation></ref>
<ref id="ref-38"><label>38.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Bian</surname> <given-names>Y</given-names></string-name></person-group>. <source>Guanxi, how China works</source> [Internet]. <publisher-loc>Cambridge</publisher-loc>: <publisher-name>Polity Press</publisher-name>; <year>2019</year>.</mixed-citation></ref>
<ref id="ref-39"><label>39.</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Lin</surname> <given-names>N</given-names></string-name></person-group>. <source>Social capital. A theory of social structure and action</source> [Internet]. <publisher-loc>Cambridge</publisher-loc>: <publisher-name>Cambridge University Press</publisher-name>; <year>2001</year>.</mixed-citation></ref>
<ref id="ref-40"><label>40.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Qiu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>X</given-names></string-name>, <string-name><surname>Shi</surname> <given-names>W</given-names></string-name></person-group>. <article-title>Impacts of social and economic factors on the transmission of coronavirus disease 2019 (COVID-19) in China</article-title>. <source>J Popul Econ</source> [Internet]. <year>2020</year>;<volume>33</volume>(<issue>4</issue>):<fpage>1127</fpage>&#x2013;<lpage>72</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s00148-020-00778-2</pub-id>; <pub-id pub-id-type="pmid">32395017</pub-id></mixed-citation></ref>
<ref id="ref-41"><label>41.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Li</surname> <given-names>JB</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>A</given-names></string-name>, <string-name><surname>Dou</surname> <given-names>K</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>LX</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>MC</given-names></string-name>, <string-name><surname>Lin</surname> <given-names>XQ</given-names></string-name></person-group>. <article-title>Chinese public&#x2019;s knowledge, perceived severity, and perceived controllability of COVID-19 and their associations with emotional and behavioural reactions, social participation, and precautionary behaviour: A national survey</article-title>. <source>BMC Public Health</source> [Internet]. <year>2020</year>;<volume>20</volume>(<issue>1</issue>):<fpage>1</fpage>&#x2013;<lpage>14</lpage>.</mixed-citation></ref>
<ref id="ref-42"><label>42.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ma</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Tao</surname> <given-names>W</given-names></string-name>, <string-name><surname>Tian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Duan</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Xiang</surname> <given-names>M</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Estimation of the outbreak severity and evaluation of epidemic prevention ability of COVID-19 by province in China</article-title>. <source>Am J Public Health</source> [Internet]. <year>2020</year>;<volume>110</volume>(<issue>12</issue>):<fpage>1837</fpage>&#x2013;<lpage>43</lpage>; <pub-id pub-id-type="pmid">33058712</pub-id></mixed-citation></ref>
<ref id="ref-43"><label>43.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Horak</surname> <given-names>S</given-names></string-name>, <string-name><surname>Afiouni</surname> <given-names>F</given-names></string-name>, <string-name><surname>Bian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Ledeneva</surname> <given-names>A</given-names></string-name>, <string-name><surname>Muratbekova-Touron</surname> <given-names>M</given-names></string-name>, <string-name><surname>Fey</surname> <given-names>CF</given-names></string-name></person-group>. <article-title>Informal networks: Dark sides, bright sides, and unexplored dimensions</article-title>. <source>Manage Organ Rev</source> [Internet]. <year>2020</year>;<volume>16</volume>(<issue>3</issue>):<fpage>511</fpage>&#x2013;<lpage>42</lpage>. doi:<pub-id pub-id-type="doi">10.1017/mor.2020.28</pub-id>.</mixed-citation></ref>
<ref id="ref-44"><label>44.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Medford</surname> <given-names>RJ</given-names></string-name>, <string-name><surname>Saleh</surname> <given-names>SN</given-names></string-name>, <string-name><surname>Sumarsono</surname> <given-names>A</given-names></string-name>, <string-name><surname>Perl</surname> <given-names>TM</given-names></string-name>, <string-name><surname>Lehmann</surname> <given-names>CU</given-names></string-name></person-group>. <article-title>An infodemic: Leveraging high-volume Twitter data to understand early public sentiment for the coronavirus disease 2019 outbreak</article-title>. <source>Open Forum Infect Dis</source> [Internet]. <year>2020</year>;<volume>7</volume>(<issue>7</issue>):<fpage>ofaa258</fpage>; <pub-id pub-id-type="pmid">33117854</pub-id></mixed-citation></ref>
<ref id="ref-45"><label>45.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Lazer</surname> <given-names>DMJ</given-names></string-name>, <string-name><surname>Pentland</surname> <given-names>A</given-names></string-name>, <string-name><surname>Watts</surname> <given-names>DJ</given-names></string-name>, <string-name><surname>Aral</surname> <given-names>S</given-names></string-name>, <string-name><surname>Athey</surname> <given-names>S</given-names></string-name>, <string-name><surname>Contractor</surname> <given-names>N</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Computational social science: Obstacles and opportunities</article-title>. <source>Sci</source> [Internet]. <year>2020</year>;<volume>369</volume>(<issue>6507</issue>):<fpage>1060</fpage>&#x2013;<lpage>62</lpage>.</mixed-citation></ref>
<ref id="ref-46"><label>46.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Allen</surname> <given-names>J</given-names></string-name>, <string-name><surname>Howland</surname> <given-names>B</given-names></string-name>, <string-name><surname>Mobius</surname> <given-names>M</given-names></string-name>, <string-name><surname>Rothschild</surname> <given-names>D</given-names></string-name>, <string-name><surname>Watts</surname> <given-names>DJ</given-names></string-name></person-group>. <article-title>Evaluating the fake news problem at the scale of the information ecosystem</article-title>. <source>Sci Adv</source> [Internet]. <year>2020</year>;<volume>6</volume>(<issue>14</issue>):<fpage>eaay3539</fpage>; <pub-id pub-id-type="pmid">32284969</pub-id></mixed-citation></ref>
</ref-list><app-group><app id="app-1">
<title>Appendix</title>
<sec id="s6">
<title>The core code of the crawler program used to obtain the Baidu population flow data</title>
<p>#coding&#x003D;utf-8</p>
<p>#<ext-link ext-link-type="uri" xlink:href="http://huiyan.baidu.com/migration/internalflowhistory.jsonp?dt=city&#x0026;id=420100&#x0026;date=20200213&#x0026;callback=jsonp_1581579398387_5437718">http://huiyan.baidu.com/migration/internalflowhistory.jsonp?dt=city&#x0026;id=420100&#x0026;date=20200213&#x0026;callback=jsonp_1581579398387_5437718</ext-link></p>
<p>from bs4 import BeautifulSoup</p>
<p>import urllib.request</p>
<p>import sys</p>
<p>import os</p>
<p>if __name__ &#x003D;&#x003D; &#x2018;__main__&#x2019;:</p>
<p>&#x2003;if len(sys.argv) !&#x003D; 3:</p>
<p>&#x2003;&#x2003;print(f&#x201C;usage: {sys.argv[0]} date directory&#x201D;)</p>
<p>&#x2003;else:</p>
<p>&#x2003;&#x2003;date &#x003D; sys.argv[1]</p>
<p>&#x2003;&#x2003;directory &#x003D; sys.argv[2]</p>
<p>&#x2003;&#x2003;if &#x2018;/&#x2019; not in directory:</p>
<p>&#x2003;&#x2003;&#x2003;directory &#x002B;&#x003D; &#x2018;/&#x2019;</p>
<p>&#x2003;&#x2003;partone &#x003D;</p>
<p>&#x201C;<ext-link ext-link-type="uri" xlink:href="http://huiyan.baidu.com/migration/internalflowhistory.jsonp?dt=city&#x0026;id=">http://huiyan.baidu.com/migration/internalflowhistory.jsonp?dt=city&#x0026;id=</ext-link>&#x201D;</p>
<p>&#x2003;&#x2003;parttwo &#x003D; &#x201C;&#x0026;date&#x003D;&#x201D;</p>
<p>&#x2003;&#x2003;files &#x003D; os.listdir(directory)</p>
<p>&#x2003;&#x2003;s &#x003D; u&#x201C;&#x5317;&#x4EAC;|110000, &#x5929;&#x6D25;|120000, &#x5174;&#x5B89;&#x76DF;|152200, &#x5DE2;&#x6E56;|340181, &#x5B9A;&#x5B89;|469021, &#x5C6F;&#x660C;|469022, &#x6F84;&#x8FC8;|469023, &#x4E34;&#x9AD8;|469024, &#x6D77;&#x4E1C;&#x5730;&#x533A;|630200, &#x9999;&#x6E2F;|810000, &#x6FB3;&#x95E8;|820000, &#x660C;&#x90FD;|540300, &#x660C;&#x90FD;&#x5730;&#x533A;|540300, &#x5C71;&#x5357;|540500, &#x5C71;&#x5357;&#x5730;&#x533A;|540500, &#x65E5;&#x5580;&#x5219;|540200, &#x65E5;&#x5580;&#x5219;&#x5730;&#x533A;|540200, &#x90A3;&#x66F2;|540600, &#x90A3;&#x66F2;&#x5730;&#x533A;|540600, &#x6797;&#x829D;|540400, &#x6797;&#x829D;&#x5730;&#x533A;|540400, &#x5410;&#x9C81;&#x756A;|650400, &#x5410;&#x9C81;&#x756A;&#x5730;&#x533A;|650400, &#x94DC;&#x4EC1;|520600, &#x94DC;&#x4EC1;&#x5730;&#x533A;|520600, &#x6BD5;&#x8282;|520500, &#x6BD5;&#x8282;&#x5730;&#x533A;|520500, &#x5E7F;&#x897F;|450000, &#x5E7F;&#x897F;&#x58EE;&#x65CF;&#x81EA;&#x6CBB;&#x533A;|450000, &#x5185;&#x8499;&#x53E4;|150000, &#x5185;&#x8499;&#x53E4;&#x81EA;&#x6CBB;&#x533A;|150000, &#x5B81;&#x590F;|640000, &#x5B81;&#x590F;&#x56DE;&#x65CF;&#x81EA;&#x6CBB;&#x533A;|640000, &#x65B0;&#x7586;|650000, &#x65B0;&#x7586;&#x7EF4;&#x543E;&#x5C14;&#x81EA;&#x6CBB;&#x533A;|650000, &#x897F;&#x85CF;|540000, &#x897F;&#x85CF;&#x81EA;&#x6CBB;&#x533A;|540000, &#x77F3;&#x5BB6;&#x5E84;|130100, &#x5510;&#x5C71;|130200, &#x79E6;&#x7687;&#x5C9B;|130300, &#x90AF;&#x90F8;|130400, &#x90A2;&#x53F0;|130500, &#x4FDD;&#x5B9A;|130600, &#x5F20;&#x5BB6;&#x53E3;|130700, &#x627F;&#x5FB7;|130800, &#x6CA7;&#x5DDE;|130900, &#x5ECA;&#x574A;|131000, |152900, &#x5B89;&#x5FBD;|340000, &#x798F;&#x5EFA;|350000, &#x7518;&#x8083;|620000, &#x5E7F;&#x4E1C;|440000, &#x8D35;&#x5DDE;|520000, &#x6D77;&#x5357;|460000, &#x6CB3;&#x5317;|130000, &#x9ED1;&#x9F99;&#x6C5F;|230000, &#x6CB3;&#x5357;|410000, &#x6E56;&#x5317;|420000, &#x6E56;&#x5357;|430000, &#x6C5F;&#x82CF;|320000, &#x6C5F;&#x897F;|360000, &#x5409;&#x6797;|220000, &#x8FBD;&#x5B81;|210000, &#x9752;&#x6D77;|630000, &#x5C71;&#x4E1C;|370000, &#x5C71;&#x897F;|140000, &#x9655;&#x897F;|610000, &#x56DB;&#x5DDD;|510000, &#x4E91;&#x5357;|530000&#x201D;......</p>
<p>&#x2003;&#x2003;cities &#x003D; s.split(u&#x201C;,&#x201D;)</p>
<p>&#x2003;&#x2003;print(&#x2018;the number of cities is&#x2019; &#x002B; str(len(cities)))</p>
<p>&#x2003;&#x2003;cdic &#x003D; {}</p>
<p>&#x2003;&#x2003;#ids &#x003D; []</p>
<p>&#x2003;&#x2003;for city in cities:</p>
<p>&#x2003;&#x2003;&#x2003;r &#x003D; city.split(u&#x201C;|&#x201D;)</p>
<p>&#x2003;&#x2003;&#x2003;print(&#x2018;city name is:&#x2019; &#x002B; r [0] &#x002B; &#x2018;id is:&#x2019; &#x002B; r [1])</p>
<p>&#x2003;&#x2003;&#x2003;if r[1] not in cdic.keys():</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;cdic[r[1]] &#x003D; r[0]</p>
<p>&#x2003;&#x2003;cnt &#x003D; 0</p>
<p>&#x2003;&#x2003;total &#x003D; len(cdic)</p>
<p>&#x2003;&#x2003;for id, name in cdic.items():</p>
<p>&#x2003;&#x2003;&#x2003;request_url &#x003D; partone &#x002B; id &#x002B; parttwo &#x002B; date</p>
<p>&#x2003;&#x2003;&#x2003;print(&#x2018;request_url is:&#x2019; &#x002B; request_url)</p>
<p>&#x2003;&#x2003;&#x2003;filename &#x003D; &#x201C;&#x57CE;&#x5185;&#x51FA;&#x884C;&#x5F3A;&#x5EA6;.&#x201D; &#x002B; name &#x002B; &#x2018;.&#x2019; &#x002B; date &#x002B; &#x2018;.html&#x2019;</p>
<p>&#x2003;&#x2003;&#x2003;if filename not in files:</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;request_page &#x003D; urllib.request.urlopen(request_url)</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;print(&#x2018;filename is:&#x2019; &#x002B; filename)</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;f &#x003D; open(directory &#x002B; filename, &#x201C;wb&#x201D;)</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;f.write(request_page.read())</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;f.close()</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;cnt &#x002B;&#x003D; 1</p>
<p>&#x2003;&#x2003;&#x2003;&#x2003;print(str(cnt) &#x002B; &#x2018;/&#x2019; &#x002B; str(total)</p>
</sec></app></app-group>
</back>
</article>