In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how Python crawled tens of thousands of pieces of Dianping data, which may not be well understood by many people. in order to make you understand better, the editor summed up the following for you. I hope you can get something according to this article.
The competition in China's fast food market has always been fierce, and there are all kinds of magical stories about various brands, so you know
Which is the most fast food brand in first-tier cities? Is Shaxian snack really a Chinese catering giant? Is it true that there is a McDonald's next to every KFC? Luckin Coffee, VS of Starbucks, whose fever is higher?
This article uses Python to crawl tens of thousands of Dianping business data to tell you the answer!
01
Big competition for the number of fast food brand stores in first-tier cities
First of all, let's take a look at the distribution of snacks in Zhongsha County, Lanzhou Ramen, Starbucks, Luckin Coffee, KFC and McDonald's in first-tier cities.
As can be seen from the stacking chart above, Shaxian snacks occupy the largest market in Shanghai, Guangzhou and Shenzhen, while Beijing has the largest number of Lanzhou ramen shops. And in four first-tier cities, Shaxian snacks and Lanzhou ramen occupy more than 70% of the market, a proper catering giant!
Apart from Shaxian snacks and Lanzhou ramen, we continue to look at McDonald's and KFC, two Western fast food restaurants, we can see that the number of these two fast food restaurants in the four cities is basically the same. it is not a rumor that there is a McDonald's where there is KFC!
Finally, let's take a look at Starbucks and Ruixing. We can find that in Shanghai, Starbucks alone has more stores than any other city combined. It seems that Mudu Starbucks has the largest number of stores in the world and is not bragging!
02
Is KFC VS McDonald's really that close?
It has been rumored that where there is KFC, there is McDonald's. Is that really the case? We climbed the first-tier city Dianping to search all the search pages under the keywords of KFC and McDonald's, and visualized the address as follows
We can see that no matter in which city, the locations of KFC and McDonald's overlap are very high, even on Chongming Island in Shanghai, the two have shops together!
And when we call geopy to calculate the distance between the two stores through longitude and latitude, we find that the shortest distance between KFC and McDonald's in each city is 0km! So when you see a KFC restaurant, go ahead boldly and you will find another McDonald's!
While other brands, such as Shanghai's Luckin Coffee, stayed out of Chongming District, while Ramen occupied more downtown stores in Lanzhou, Guangzhou, and more Shaxian snacks in the outer area.
03
Shaxian snack VS Lanzhou ramen, whose price is lower?
Shaxian snacks and Lanzhou ramen, as the fast food brands with the highest market share, are inseparable from their low prices, so what are their prices in first-tier cities? Let's take a look.
Take Beijing as an example, we can see that although it is the first and second fast food restaurant in the market, the price gap is obvious. Shaxian snacks can basically be controlled within 20 yuan, while most Lanzhou ramen shops consume 20-50 yuan per capita. In Beijing, a bowl of Lanzhou ramen noodles can make two meals of Shaxian snacks, no wonder Sanhe most Estonian County Hotel.
Further, we will visualize the average price of fast food brands in all first-tier cities.
From the picture, we can see that no matter which fast food, the average price of stores in Beijing is basically the highest, while the price in Guangzhou is mostly the lowest. In the same first-tier city, the per capita price of some fast food brands is even double (Lanzhou ramen). Is the beef thicker in Lanzhou ramen in Beijing?
In addition, it is worth noting that the average price of Starbucks is the highest of the six brands, while the price of its competitor Luckin Coffee is nearly half lower. Of course, it is understandable to see the coupons in my lucky coffee card bag. But one cup of Starbucks is about three Shaxian snacks. How do you choose?
04
Luckin Coffee, VS of Starbucks, whose fever is higher?
Judging from the results of the previous section, the average price of Starbucks is nearly double that of Ruixing, so whether it is more expensive Starbucks is popular or Luckin Coffee, who has a lot of coupons, is more popular. We use the number of reviews below the store as the store's popularity to visualize the data.
From the scatter chart above, we can see that in the four first-tier cities, most of Luckin Coffee's store reviews are concentrated at 0500, while the overall number of Starbucks stores is slightly higher, so it is not that there is no one to drink because the price is high. Of course, in many cases, I don't go to Starbucks for coffee.
After reading the above, do you have any further understanding of how Python crawled tens of thousands of pieces of Dianping data? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.