Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python crawls and analyzes the data from the list of the most beautiful Top100 goddesses in the world.

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Python crawls and analyzes the data of the list of the most beautiful Top100 goddesses in the world. I believe that many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Recently, foreign media TOP BEAUTY WORLD selected the top 100 most handsome men and most beautiful women in the world, and Xiao Zhancheng became the first Asian to reach the top of the list. This news immediately became a hot spot of traffic.

The editor specially checked it and wanted to see the information of the most beautiful sister on the list. But there is no information on the list of the most beautiful girls yet. However, the editor looked up the last detailed list of the top 100 most beautiful women in the world released at the end of 2019, including name, nationality and occupation.

First of all, we need to get the data we want, including the picture, name and nationality of the little sister. Because the web page is a static web page, we can directly analyze the source code of the web page and get the data we need. The program is shown in the following figure:

Data analysis of top goddess

After getting the data, let's take a look at the data and see what information we can get from the data.

1)。 Continental information statistics

It can be seen that the 100 beauties in the world come from six other continents except Antarctica, with the largest number from Asia, followed by Europe and North America.

2)。 Nationality information statistics

It is very troublesome to count and visualize the nationality of beauties. You need to judge and process the data patiently. Although it is very time-consuming, the number is not very large, as shown in the following figure:

It can be seen that among these 100 beauties, the United States is the most, of course, it is undeniable that many of them hold dual nationality status of the United States and other countries. There are 13 beautiful women from the UK, and of course many of them have dual nationality.

In third place, China and South Korea do not have the problem of dual nationality at all. From the perspective of global distribution, the number of people in Africa and Europe seems to be very small, especially in some European countries such as Italy and France, there are no beauties in the top 100.

3)。 Career analysis

As for the careers of the beauties on the list, there are also very concentrated here, with only three professions: model, actor and singer. There is no doubt that every profession needs its own perfect conditions.

In the above program, by passing the path of the picture to the FaceScore function, in the FaceScore function, the picture is read in binary form through the get_file_content function.

After coding through the base64 library, it is used as the params parameter post to request the url link. And parse the information returned by the url link, and extract the face rating data in the returned information.

After running the above program, we will get a score on the AI appearance of 100 beautiful women. Here we will show you which stars are in the top five in terms of appearance.

After reading the above, have you mastered the method of Python crawling and analyzing the data of the list of the most beautiful Top100 goddesses in the world? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report