1. 程式人生 > >Python爬蟲練習之一:抓取美團資料

Python爬蟲練習之一:抓取美團資料

{'poiId': 1653468, 'frontImg': 'http://p0.meituan.net/600.600/mogu/7f102559bd246c78d7f2d2ab066a12d0139144.jpg', 'title': '火宴山(大悅城店)', 'avgScore': 4.9, 'allCommentNum': 43409, 'address': '朝陽區朝陽北路107號院58號樓二層部分', 'avgPrice': 67, 'dealList': [{'title': '自助午餐', 'price': 83, 'soldCounts': 226995}, {'title': '自助晚餐', 'price': 103, 'soldCounts': 226696}, {'title': '夜宵自助餐', 'price': 73, 'soldCounts': 10905}]}
{'poiId': 40714079, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/39401de1a941ccf83c172d600c730e6b4119977.jpg', 'title': '時代風帆海鮮自助餐廳(角門西店)', 'avgScore': 4.1, 'allCommentNum': 4864, 'address': '豐臺區馬家堡西路15號時代風帆大廈北側商用樓3層(地鐵四號或十號線角門西站 A口出即到)', 'avgPrice': 191, 'dealList': [{'title': '午/晚餐單人券', 'price': 215, 'soldCounts': 37460}, {'title': '週一至週五午餐券', 'price': 168, 'soldCounts': 2101}]}
{'poiId': 42081214, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/42cf12a9a9946ac036229c3b595d6ae6890414.jpg', 'title': '韓時烤肉(楓藍國際購物中心店)', 'avgScore': 5, 'allCommentNum': 3901, 'address': '海淀區西直門北大街32號楓藍國際購物中心2層', 'avgPrice': 69, 'dealList': [{'title': '精選2-3人套餐', 'price': 175, 'soldCounts': 162592}, {'title': '100元代金券1張,全場通用', 'price': 92, 'soldCounts': 75740}, {'title': '精選5-6人套餐', 'price': 359, 'soldCounts': 13600}]}
{'poiId': 1467844, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/3ff5b78217da04bd79839e2b9a19ca02683868.jpg', 'title': '福口居(北太平莊店)', 'avgScore': 5, 'allCommentNum': 7483, 'address': '海淀區北太平莊北三環中路40號(近國美)', 'avgPrice': 63, 'dealList': [{'title': '100元代金券1張,可疊加使用,非特價菜品通用', 'price': 90, 'soldCounts': 191225}, {'title': '福口居四人套餐,提供免費WiFi', 'price': 228, 'soldCounts': 1130}, {'title': '福口居雙人套餐,提供免費WiFi', 'price': 108, 'soldCounts': 2014}, {'title': '福口居十人套餐,包間免費', 'price': 698, 'soldCounts': 17}, {'title': '100元代金券1張,可疊加', 'price': 90, 'soldCounts': 3098}]}
{'poiId': 36235, 'frontImg': 'http://p1.meituan.net/600.600/apiback/c3b2770e7eecb6f2949c5a9c3b9f57bc1156913.jpg', 'title': '東來順飯莊(中關村海淀大街店)', 'avgScore': 5, 'allCommentNum': 12088, 'address': '海淀區中關村海淀大街34號海置創投大廈', 'avgPrice': 95, 'dealList': [{'title': '4-5人套餐,無需預約,有飲料', 'price': 188, 'soldCounts': 28791}, {'title': '4-5人套餐,節假日通用,中關村店/朝陽雙井店通用', 'price': 209, 'soldCounts': 21549}, {'title': '100元代金券1張,可疊加', 'price': 85, 'soldCounts': 774}, {'title': '東來順4-5人套餐', 'price': 188, 'soldCounts': 50717}, {'title': '100元代金券1張,可疊加', 'price': 79, 'soldCounts': 26837}]}
{'poiId': 4374627, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/de356c38445806d9f56350123e753962381812.jpg', 'title': '水木錦堂鐵板燒·自助(五道口店)', 'avgScore': 4.2, 'allCommentNum': 2440, 'address': '海淀區成府路28號5道口購物中心3F(五道口購物中心3層)', 'avgPrice': 199, 'dealList': [{'title': '鐵板自助午餐/鐵板自助晚餐2選1', 'price': 228, 'soldCounts': 33614}, {'title': '鐵板自助午晚餐', 'price': 288, 'soldCounts': 19549}]}
{'poiId': 364661, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/03f6abecb83158c4e4216732db0d0361134930.jpg', 'title': '京味齋烤鴨店(東大街店)', 'avgScore': 5, 'allCommentNum': 5651, 'address': '豐臺區東大街20號(近解放軍第307醫院)', 'avgPrice': 64, 'dealList': [{'title': '100元代金券1張,可疊加', 'price': 95, 'soldCounts': 85621}, {'title': '300元代金券1張,可疊加', 'price': 285, 'soldCounts': 1859}, {'title': '400元代金券1張,可疊加', 'price': 380, 'soldCounts': 1000}, {'title': '牡丹烤鴨1只', 'price': 138, 'soldCounts': 2515}, {'title': '600元代金券1張,可疊加', 'price': 570, 'soldCounts': 788}, {'title': '500元代金券1張,可疊加', 'price': 475, 'soldCounts': 782}, {'title': '200元代金券1張,可疊加', 'price': 190, 'soldCounts': 4541}]}
{'poiId': 4456282, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/b7970c6d106f1b457c460b84009de6b6294832.jpg', 'title': '鑫海匯海鮮自助烤肉(大紅門店)', 'avgScore': 3.9, 'allCommentNum': 17335, 'address': '豐臺區大紅門街道南苑路5號(福海國際大廈9樓)', 'avgPrice': 61, 'dealList': [{'title': '海鮮自助烤肉單人/海鮮自助烤肉單人2選1', 'price': 70, 'soldCounts': 151570}, {'title': '特惠下午單人券', 'price': 50.9, 'soldCounts': 5890}, {'title': '工作日午餐單人券', 'price': 68.05, 'soldCounts': 1718}]}
{'poiId': 5923903, 'frontImg': 'http://p0.meituan.net/600.600/deal/__25083610__3807189.jpg', 'title': '漢麗軒海鮮火鍋烤肉自助 (梨園店)', 'avgScore': 4.3, 'allCommentNum': 12273, 'address': '通州區梨園鎮雲景裡(藍島大廈南300米)', 'avgPrice': 52, 'dealList': [{'title': '自助午餐', 'price': 58, 'soldCounts': 62475}, {'title': '自助晚餐', 'price': 68, 'soldCounts': 83484}]}
{'poiId': 4552774, 'frontImg': 'http://p0.meituan.net/600.600/deal/05609d46e01e0303d0ba81469144ac6f276405.jpg', 'title': '火爐火年糕火鍋(五道口店)', 'avgScore': 4.3, 'allCommentNum': 5163, 'address': '海淀區五道口國際食尚苑1樓(康師傅私房牛肉麵旁邊步行街裡面15米)', 'avgPrice': 55, 'dealList': [{'title': '年糕火鍋雙人套餐', 'price': 108, 'soldCounts': 22659}, {'title': '春川雞排雙人套餐', 'price': 108, 'soldCounts': 817}]}
{'poiId': 4502840, 'frontImg': 'http://p1.meituan.net/600.600/apiback/3dd268daa5c6477a4ff0b228ddd1ad4b18855.jpg', 'title': '好倫哥自助比薩(龍旗購物中心店)', 'avgScore': 4.5, 'allCommentNum': 8829, 'address': '昌平區黃平路19號院龍旗購物中心3樓', 'avgPrice': 52, 'dealList': [{'title': '單人自助', 'price': 52.9, 'soldCounts': 337720}]}
{'poiId': 267256, 'frontImg': 'http://p0.meituan.net/600.600/mogu/8a83b06c8f4b2e981a51461d995b431e39760.jpg', 'title': '好倫哥(勁鬆店)', 'avgScore': 4.1, 'allCommentNum': 9624, 'address': '朝陽區勁鬆南路9號(農業銀行旁)', 'avgPrice': 52, 'dealList': [{'title': '單人自助餐', 'price': 56, 'soldCounts': 533691}]}
{'poiId': 263972, 'frontImg': 'http://p1.meituan.net/600.600/deal/__36496107__6244819.jpg', 'title': '好倫哥(永定路店)', 'avgScore': 4.4, 'allCommentNum': 9876, 'address': '海淀區復興路甲36號百朗園東北角(永定路口)', 'avgPrice': 54, 'dealList': [{'title': '永定路店單人自助餐1人次', 'price': 65, 'soldCounts': 121210}]}
{'poiId': 4570815, 'frontImg': 'http://p0.meituan.net/600.600/merchantpic/d83b860b77b5a4fe5552af2f43d4a1a8144853.jpg', 'title': '紐約客美式餐廳(悅薈萬科廣場店)', 'avgScore': 5, 'allCommentNum': 8099, 'address': '昌平區南環路10號院1號樓悅薈萬科廣場2層', 'avgPrice': 95, 'dealList': [{'title': '美式風味雙人套餐', 'price': 149, 'soldCounts': 22927}, {'title': '波士頓燒烤豬排 BBQ Pork Boston2份', 'price': 169, 'soldCounts': 5290}, {'title': '100元代金券1張,可疊加', 'price': 95, 'soldCounts': 8540}, {'title': '紐約客香辣雞排(配黃油米飯)NewYorker Spicy Chicken1份', 'price': 69, 'soldCounts': 2046}, {'title': '活動美味雙人套餐', 'price': 139, 'soldCounts': 227}]}
{'poiId': 346746, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/2a8f3f628f17a35d85a613812d1f4b761661798.jpg', 'title': '小牛海記潮汕牛肉店(牡丹園店)', 'avgScore': 5, 'allCommentNum': 6458, 'address': '海淀區花園路中城寫字樓2層', 'avgPrice': 92, 'dealList': [{'title': '100元代金券1張,可疊加', 'price': 95, 'soldCounts': 51593}, {'title': '超值雙人套餐,提供免費WiFi', 'price': 120, 'soldCounts': 204}]}
{'poiId': 69788, 'frontImg': 'http://p1.meituan.net/600.600/mogu/1b5bc656682b9fe1d3392518571a6b2f41227.jpg', 'title': '山之川海鮮放題(亞運村店)', 'avgScore': 5, 'allCommentNum': 1922, 'address': '朝陽區亞運村大屯路慧忠裡202號樓1樓(第五大道斜對面)', 'avgPrice': 162, 'dealList': [{'title': '298元自助餐', 'price': 279, 'soldCounts': 10702}, {'title': '100元代金券1張,可疊加', 'price': 90, 'soldCounts': 521}, {'title': '自助餐2位,提供免費WiFi', 'price': 558, 'soldCounts': 2381}, {'title': '自助餐3位,提供免費WiFi', 'price': 837, 'soldCounts': 835}]}
{'poiId': 40691929, 'frontImg': 'http://p0.meituan.net/600.600/deal/9bdd4e87a9d21b458cec134043d73356397267.jpg', 'title': '伊爾克啤酒烤肉自助(大興店)', 'avgScore': 3.6, 'allCommentNum': 10800, 'address': '大興區興華大街百聯清城購物中心三層', 'avgPrice': 59, 'dealList': [{'title': '伊爾克烤肉自助餐', 'price': 59, 'soldCounts': 140445}]}
{'poiId': 264962, 'frontImg': 'http://p1.meituan.net/600.600/shopmainpic/7130dbbb6a8678fa1cd08decfd492451327408.jpg', 'title': '金源福城肥牛火鍋(遠大路金源店)', 'avgScore': 5, 'allCommentNum': 11695, 'address': '海淀區遠大路1號金源時代購物中心五層5-17號(公交站遠大路東口站下)', 'avgPrice': 83, 'dealList': [{'title': '100元代金券1張,可疊加5張', 'price': 85, 'soldCounts': 35415}, {'title': '火鍋8人餐,有贈品', 'price': 488, 'soldCounts': 188}, {'title': '火鍋雙人餐,有贈品', 'price': 128, 'soldCounts': 1836}, {'title': '火鍋精品雙人餐,有贈品', 'price': 198, 'soldCounts': 119}, {'title': '火鍋4人餐,有贈品', 'price': 258, 'soldCounts': 661}, {'title': '火鍋精品4人餐,有贈品', 'price': 368, 'soldCounts': 127}, {'title': '精品火鍋8人餐,有贈品', 'price': 688, 'soldCounts': 190}]}
{'poiId': 6918038, 'frontImg': 'http://p0.meituan.net/600.600/deal/202c18bf7f3404311ca949c1844b3583134569.jpg', 'title': '東來順(京通羅斯福廣場店)', 'avgScore': 5, 'allCommentNum': 7421, 'address': '通州區北苑南路翠屏北里21號樓京通羅斯福廣場F4層(九棵樹地鐵對面)', 'avgPrice': 53, 'dealList': [{'title': '雙人套餐', 'price': 128, 'soldCounts': 18951}, {'title': '四人套餐,提供免費WiFi', 'price': 228, 'soldCounts': 7861}]}
{'poiId': 40515455, 'frontImg': 'http://p0.meituan.net/600.600/ugcpic/6dd68dcc75637af21d5554e509f583ce', 'title': '邊境東南亞小吃(薈聚西紅門店)', 'avgScore': 5, 'allCommentNum': 3014, 'address': '大興區欣寧街15號薈聚購物中心3層', 'avgPrice': 67, 'dealList': [{'title': '100元代金券1張,可疊加', 'price': 89, 'soldCounts': 20617}]}
{'poiId': 2505561, 'frontImg': 'http://p1.meituan.net/600.600/deal/__22052386__6727561.jpg', 'title': '漢麗軒烤肉超市(凱德MALL店)', 'avgScore': 3, 'allCommentNum': 13991, 'address': '海淀區翠微路12號新華聯商業大廈凱德MALL購物中心B1層', 'avgPrice': 50, 'dealList': [{'title': '午餐自助', 'price': 53, 'soldCounts': 54373}, {'title': '晚餐自助', 'price': 55, 'soldCounts': 40603}]}
{'poiId': 5766319, 'frontImg': 'http://p0.meituan.net/600.600/deal/ff8f8367cf15e4185b22d0c219563725128176.jpg', 'title': '好倫哥(密雲燕賽奧特萊斯店)', 'avgScore': 4.6, 'allCommentNum': 6792, 'address': '密雲區鼓樓大街3號燕賽奧特萊斯商場3層', 'avgPrice': 49, 'dealList': [{'title': '單人自助餐', 'price': 49, 'soldCounts': 69749}, {'title': '家庭溫馨餐', 'price': 98, 'soldCounts': 35}]}
{'poiId': 273755, 'frontImg': 'http://p0.meituan.net/600.600/mogu/62e02d8f5be6e9531e7b56417dc3442570507.jpg', 'title': '東來順飯莊(世紀金源購物中心店)', 'avgScore': 3.9, 'allCommentNum': 6054, 'address': '海淀區遠大路1號世紀金源購物中心5樓', 'avgPrice': 118, 'dealList': [{'title': '雙人餐,提供免費WiFi', 'price': 109, 'soldCounts': 24647}, {'title': '4人餐,提供免費WiFi', 'price': 199, 'soldCounts': 18423}]}
{'poiId': 1500269, 'frontImg': 'http://p0.meituan.net/600.600/mogu/62e02d8f5be6e9531e7b56417dc3442570507.jpg', 'title': '東來順飯莊(五道口店)', 'avgScore': 4.5, 'allCommentNum': 15881, 'address': '海淀區成府路28號五道口購物中心5樓13號(近五道口地鐵站)', 'avgPrice': 119, 'dealList': [{'title': '100元代金券1張,可疊加', 'price': 85, 'soldCounts': 42611}, {'title': '200元代金券1張', 'price': 170, 'soldCounts': 14646}, {'title': '東來順暢享6人餐', 'price': 309, 'soldCounts': 660}, {'title': '4人餐,提供免費WiFi', 'price': 199, 'soldCounts': 13202}, {'title': '雙人餐,提供免費WiFi', 'price': 109, 'soldCounts': 21329}]}
{'poiId': 290852, 'frontImg': 'http://p0.meituan.net/600.600/deal/__23534840__9029673.jpg', 'title': '好倫哥(天壇東門店)', 'avgScore': 4.1, 'allCommentNum': 10221, 'address': '東城區天壇東路天壇內東里1號', 'avgPrice': 52, 'dealList': [{'title': '單人自助午餐/晚餐通用,免費WiFi', 'price': 53, 'soldCounts': 102346}]}
{'poiId': 4456933, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/6b4502ec75a2745ad03b3bbc0a70cd4d3121932.jpg', 'title': '滇草香雲南原生態湯火鍋(朝陽大悅城店)', 'avgScore': 5, 'allCommentNum': 4671, 'address': '朝陽區朝陽北路101號朝陽大悅城6層(10號電梯附近,咂七咂八對面)', 'avgPrice': 103, 'dealList': [{'title': '雙人午餐,免費WiFi', 'price': 118, 'soldCounts': 12463}, {'title': '4人餐午餐,免費WiFi', 'price': 228, 'soldCounts': 5033}, {'title': '雙人晚餐,免費WiFi', 'price': 169, 'soldCounts': 8294}, {'title': '4人餐晚餐,免費WiFi', 'price': 278, 'soldCounts': 5251}, {'title': '6人午餐,免費WiFi', 'price': 318, 'soldCounts': 1938}, {'title': '8人午餐,免費WiFi', 'price': 528, 'soldCounts': 363}, {'title': '6人晚餐,免費WiFi', 'price': 388, 'soldCounts': 2284}, {'title': '8人晚餐,免費WiFi', 'price': 568, 'soldCounts': 814}, {'title': '100元代金券1張,可疊加', 'price': 68, 'soldCounts': 11811}, {'title': '100元代金券1張,可疊加', 'price': 10, 'soldCounts': 1488}, {'title': '雲南米線單人餐', 'price': 38, 'soldCounts': 16}, {'title': '鍋底4選1', 'price': 1, 'soldCounts': 75}]}
{'poiId': 6840453, 'frontImg': 'http://p1.meituan.net/600.600/deal/580443d8d7711761c6b1f89143530319267828.jpg', 'title': 'takecake烘焙工坊(三里屯店)', 'avgScore': 4, 'allCommentNum': 7296, 'address': '朝陽區三里屯北12號樓', 'avgPrice': 88, 'dealList': [{'title': '2磅蛋糕3選1四葉草升級版蛋糕3選1五環內免費配送', 'price': 128, 'soldCounts': 28338}, {'title': '紅絲絨蛋糕/繽紛鮮果蛋糕2選1', 'price': 168, 'soldCounts': 992}, {'title': '鮮花漿果裸蛋糕1個,約16釐米,圓形', 'price': 168, 'soldCounts': 4033}, {'title': '暖暖熊蛋糕1個,約8釐米,熊形', 'price': 228, 'soldCounts': 11}, {'title': '手作——瑞士捲/蛋糕卷4選1', 'price': 98, 'soldCounts': 8}, {'title': 'Christmas Cap(聖誕帽)1磅', 'price': 299, 'soldCounts': 1}, {'title': '下午茶甜點3選1', 'price': 158, 'soldCounts': 47}, {'title': '蛋糕3選1', 'price': 488, 'soldCounts': 67}]}
{'poiId': 1576363, 'frontImg': 'http://p0.meituan.net/600.600/mogu/92d839a7e0ef51b6dec3d1e2ba997bb5267281.jpg', 'title': '比格比薩(西單明珠餐廳)', 'avgScore': 4.7, 'allCommentNum': 10967, 'address': '西城區明珠商場8層', 'avgPrice': 54, 'dealList': [{'title': '週一至週五自助餐', 'price': 65, 'soldCounts': 277344}, {'title': '單人零點套餐1份', 'price': 39, 'soldCounts': 204}, {'title': '雙人零點套餐1份', 'price': 88, 'soldCounts': 67}]}
{'poiId': 294929, 'frontImg': 'https://img.meituan.net/600.600/msmerchant/2dad52df4c82d6ed914f2de76cedc124528185.jpg', 'title': '金百萬(萬柳店)', 'avgScore': 5, 'allCommentNum': 4087, 'address': '海淀區萬泉河路小南莊400號龍都賓館院內(近萬柳東路)', 'avgPrice': 81, 'dealList': [{'title': '1000元代金券1張,可疊加', 'price': 920, 'soldCounts': 2232}, {'title': '4人套餐,提供免費WiFi', 'price': 298, 'soldCounts': 4352}, {'title': '100元代金券1張,可疊加', 'price': 100, 'soldCounts': 1228}, {'title': '烤鴨1套,提供免費WiFi', 'price': 108, 'soldCounts': 9063}, {'title': '500元代金券1張,可疊加', 'price': 460, 'soldCounts': 96}, {'title': '300元代金券1張,可疊加', 'price': 276, 'soldCounts': 142}, {'title': '雙人套餐,提供免費WiFi', 'price': 128, 'soldCounts': 9073}, {'title': '100元代金券1張,可疊加', 'price': 92, 'soldCounts': 8136}, {'title': '八人套餐,提供免費WiFi', 'price': 588, 'soldCounts': 1743}, {'title': '烤鴨1套,提供免費WiFi', 'price': 88, 'soldCounts': 44628}]}
{'poiId': 4541744, 'frontImg': 'http://p1.meituan.net/600.600/deal/10c8be78395aa655f6bb5704db6f5019357246.jpg', 'title': '漢麗軒自助涮烤超市(雙井店)', 'avgScore': 3.2, 'allCommentNum': 9187, 'address': '朝陽區百環家園甲19號愷興文化二樓', 'avgPrice': 44, 'dealList': [{'title': '漢麗軒自助涮烤', 'price': 62, 'soldCounts': 62452}, {'title': '午市自助涮烤', 'price': 55, 'soldCounts': 10724}]}
{'poiId': 287796, 'frontImg': 'http://p1.meituan.net/600.600/mogu/e69c5714c66adc34a6811435e90ce36c53643.jpg', 'title': '串來串去串吧(中關村店)', 'avgScore': 3.8, 'allCommentNum': 2042, 'address': '海淀區中關村大街49號(人大東門人大附中間)', 'avgPrice': 67, 'dealList': [{'title': '100元代金券1張,可疊加', 'price': 88, 'soldCounts': 9423}, {'title': '200元代金券1張,可疊加', 'price': 169, 'soldCounts': 12185}]}
{'poiId': 4147527, 'frontImg': 'http://p1.meituan.net/600.600/deal/__23524696__2888877.jpg', 'title': '金滏山自助烤肉(大成路店)', 'avgScore': 3.7, 'allCommentNum': 11099, 'address': '豐臺區大成路23號天泰大廈3樓(久隆百貨青塔店十字路口向東)', 'avgPrice': 44, 'dealList': [{'title': '單人晚餐', 'price': 58, 'soldCounts': 78710}, {'title': '單人午餐', 'price': 49, 'soldCounts': 37531}]}