In this paper, based on Sina Weibo data, a natural language processing (NLP) analysis method was used to analyze the temporal and spatial sequence characteristics of people's attention and the characteristics of text content with the help of microblogs posted by people within 6 days after the 2022 Lushan M6.1, Maerkang M5.8 and Luding M6.8 earthquakes. Moreover, the same analysis method was used on the content of comments on microblogs posted by official media outlets within 6 days after the earthquakes to analyze the changes in people's sentiments and the differences in the sentiments in various regions, and the influencing factors were also analyzed. The results of this research show the following: In terms of the spatial and temporal distributions, people's attention was affected by the earthquakes themselves and their social impacts, and the first 2 h was often a period of an outbreak of attention, with the publishing areas mainly concentrated in Sichuan and Guangdong. In terms of people's sentiments, the overall microblogging sentiment of the three earthquakes was positive, and the sentiment value of the people in Sichuan was generally low compared with that of the people in the other regions. Not only was the fluctuation in sentiment affected by the influence of the region, but it was also positively related to the sentiment of official microblogs. The results of this research provide reference for guiding people's sentiments after earthquakes in the new media era. [ABSTRACT FROM AUTHOR]