#coding:utf-8
import json
import re
import HTMLParser
import MySQLdb

# string="https://list.tmall.com/search_product.htm?q=%CA%D6%BB%FA"
# "https://pages.tmall.com/wow/tmall-3c/act/pcfp"
# "https://detail.tmall.com/item.htm?id=531959601469"
# "https://rate.tmall.com/list_detail_rate.htm?itemId=522567808844&sellerId=1&order=3&currentPage=15"
# "https://dsr-rate.tmall.com/list_dsr_info.htm?itemId=522567808844"
# "https://rate.tmall.com/listTagClouds.htm?itemId=526512408679"  
# mstr3 = re.sub(r"\\uff1a",r":",mstr1)
# mstr = re.sub(r"\\x26([a-zA-Z]{2,6});", r"&\1;", mstr3)
# json.loads(mstr)

# invalid_escape = re.compile(r'\\[0-7]{1,3}')  # up to 3 digits for byte values up to FF

# def replace_with_byte(match):
#     return chr(int(match.group(0)[1:], 8))

# def repair(brokenjson):
#     return invalid_escape.sub(replace_with_byte, brokenjson)

# json.loads(repair(mstr1))

# mstr = '\u5168\u7403\u8d2d\u0020\u5c0f\u7c73\u0028\u004d\u0049\u0029\u0020\u5c0f\u7c73\u0035\u0020\u5c0a\u4eab\u7248\u0020\u53cc\u5361\u53cc\u5f85\u0020\u5168\u7f51\u901a\u0034\u0047\u667a\u80fd\u624b\u673a\u0020\u9ed1\u8272\u0020\u73b0\u8d27\u0020\u5b98\u65b9\u6807\u914d'
# print mstr.
# info ='TShop.Setup({"api":{"descUrl":"//dsc.taobaocdn.com/i6/521/590/529596149508/TB1mLN1LpXXXXbPXVXX8qtpFXlX.desc%7Cvar%5Edesc%3Bsign%5E6320859899f27958d99fe27f1efac41f%3Blang%5Egbk%3Bt%5E1470982640","fetchDcUrl":"//hdc1.alicdn.com/asyn.htm?pageId=1032170926&userId=1816075766","httpsDescUrl":"//desc.alicdn.com/i6/521/590/529596149508/TB1mLN1LpXXXXbPXVXX8qtpFXlX.desc%7Cvar%5Edesc%3Bsign%5E6320859899f27958d99fe27f1efac41f%3Blang%5Egbk%3Bt%5E1470982640"},"apiAddCart":"//cart.taobao.com/add_cart_item.htm?item_id=529596149508","apiBeans":"//count.taobao.com/counter3?keys=SM_368_dsr-1816075766,ICCP_1_529596149508","apiBidCount":"//tbskip.taobao.com/json/show_bid_count.htm?itemNumId=529596149508&old_quantity=10122&date=1471400449000","apiItemViews":"//count.taobao.com/counter2?keys=ICVT_7_529596149508&inc=ICVT_7_529596149508&sign=973547d1fa8665ba384020544687500d8bb","apiTmallComboInfo":"//ext-mdskip.taobao.com/extension/queryTmallCombo.do?itemId=529596149508&comboGroup=0","apiTmallComboItem":"//ext-mdskip.taobao.com/extension/queryComboItem.do?comboGroup=0","cartEnable":true,"changeLocationApi":"//mdskip.taobao.com/core/changeLocation.htm?showShopProm=false&itemId=529596149508&notAllowOriginPrice=false&sellerUserTag4=1152930300701984131&sellerUserTag3=144467031796777088&tgTag=false&household=false&itemTags=258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842&service3C=false&isAreaSell=false&offlineShop=false&sellerUserTag2=18015686999670784&cartEnable=true&addressLevel=2&sellerUserTag=34672672&isRegionLevel=false&isSecKill=false&isUseInventoryCenter=false","cmCatId":"2","detail":{"addressLevel":2,"allowRate":true,"autoccUser":false,"canEditInItemDet":true,"cdn75":false,"defaultItemPrice":"99.00","enableAliMedicalComponent":true,"globalSellItem":false,"goNewAuctionFlow":false,"is0YuanBuy":false,"isAliTelecomNew":false,"isAlicomMasterCard":false,"isAllowReport":true,"isAutoFinancing":false,"isAutoYushou":false,"isBundleItem":false,"isCarCascade":false,"isCarService":false,"isCarYuEBao":false,"isContractPhoneItem":false,"isCyclePurchase":false,"isDownShelf":false,"isFullCarSell":false,"isH5NewLogin":true,"isHasPos":false,"isHasQualification":false,"isHiddenShopAction":false,"isHidePoi":false,"isHkDirectSale":false,"isHkItem":false,"isHkO2OItem":false,"isIFCShop":false,"isItemAllowSellerView":true,"isLadderGroupon":false,"isMeilihui":false,"isMemberShopItem":false,"isNewAttraction":true,"isNewMedical":false,"isNextDayService":false,"isO2OStaging":false,"isOnePriceCar":false,"isOtcDrug":false,"isPreSellBrand":false,"isPrescriptionDrug":false,"isPurchaseMallVipBuyer":false,"isRegionLevel":false,"isSavingEnergy":false,"isShowContentModuleTitle":false,"isShowEcityBasicSign":false,"isShowEcityDesc":false,"isShowEcityVerticalSign":false,"isShowPreClosed":false,"isSkuColorShow":false,"isSkuMemorized":false,"isTeMai":false,"isVitual3C":false,"loginBeforeCart":false,"mlhNewDesc":false,"pageType":"default","recommendBigMarkDownEndTime":"1453391999000","recommendBigMarkDownStartTime":"1452960000000","reviewListType":1,"show9sVideo":true,"showDiscountRecommend":false,"showFushiPoiInfo":false,"supermarketAndQianggou":false,"timeKillAuction":false,"tryReportDisable":false},"getProgressiveInfoApi":"//mdskip.taobao.com/core/getProgressiveInfo.do?platform_type=b2c&fromTryBeforeBuy=false&sellerId=1816075766&platform=tmall&category=50008619&sellerPercent=3_100_1.60;6_0_4.50;9_0_6.00","idsMod":[],"initApi":"//mdskip.taobao.com/core/initItemDetail.htm?isRegionLevel=false&isPurchaseMallPage=false&queryMemberRight=true&itemId=529596149508&household=false&tmallBuySupport=true&showShopProm=false&isUseInventoryCenter=false&tryBeforeBuy=false&cachedTimestamp=1471446578422&isForbidBuyItem=false&sellerPreview=false&isSecKill=false&service3C=false&isAreaSell=false&isApparel=false&offlineShop=false&addressLevel=2&cartEnable=true","initCspuExtraApi":"//ext-mdskip.taobao.com/extension/initCspuExtra.htm","initExtensionApi":"//ext-mdskip.taobao.com/extension/initExtension.htm?itemTags=258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842&sellerId=1816075766&spuId=526675144&brand=%C1%BC%C6%B7%C6%CC%D7%D3&showBreadCrumb=false&showShopProm=false&showSpuMaintainer=false&categoryId=50008619","initExtraApi":"//ext-mdskip.taobao.com/extension/initExtra.htm","isAliTripHK":false,"isAreaSell":false,"isDoubleElevenItem":true,"isHouseholdService":false,"isMeiz":false,"isMultiPoint":false,"isOnlyInMobile":false,"isService":false,"isSevenDaysRefundment":true,"isShowSizeHelper":false,"isShowSizeRecommend":false,"isTmallComboSupport":true,"isTripUser":false,"isWTContract":false,"itemDO":{"attachImgUrl":[],"auctionStatus":"0","auctionType":"b","brand":"&#33391;&#21697;&#38138;&#23376;","brandId":"7724367","brandSiteId":"0","brandSpecialSold":"false","categoryId":"50008619","cspuCategorySwitch":false,"encryptSellerId":"UvFgYMCNuMFcLMgTT","feature":"1","hasSku":true,"isBidden":false,"isCustomizedItem":false,"isDcAsyn":true,"isDefaultChooseTryBeforeBuy":false,"isElecCouponItem":false,"isEnterprisePath":false,"isInRepository":false,"isNewProGroup":false,"isOnline":true,"isSecondKillFromMobile":false,"isSecondKillFromPC":false,"isSecondKillFromPCAndWap":false,"isSupportTryBeforeBuy":false,"itemId":"529596149508","prov":"湖北","quantity":4542,"reservePrice":"99.00","rootCatId":"50002766","sellProgressiveRate":"3_100_1.60;6_0_4.50;9_0_6.00","sellerNickName":"%E5%90%83%E8%B4%A7%E9%A3%9F%E5%93%81%E4%B8%93%E8%90%A5%E5%BA%97","showCompanyPurchase":false,"spuId":"526675144","title":"良品铺子零食大礼包一箱的麻辣味零食礼包辣条套餐组合送女友生日","userId":"1816075766","validatorUrl":"//store.taobao.com/tadget/shop_stats.htm","weight":"0"},"newSelectCityApi":"//mdskip.taobao.com/json/detailSelectCity.do?isAreaSell=false&itemId=529596149508","rateConfig":{"itemId":529596149508,"listType":1,"rateCloudDisable":false,"rateEnable":true,"rateNewChartDisable":false,"rateScoreCacheDisable":false,"rateScoreDisable":false,"rateSubjectDisable":false,"sellerId":1816075766,"spuId":526675144,"tryReportDisable":false},"renderSystemServer":"//render.taobao.com","rstShopId":106739573,"selectCityApi":"//mdskip.taobao.com/core/selectCity.htm?isAreaSell=false&itemId=529596149508","selectRegionApi":"//mdskip.taobao.com/core/selectRegion.do?isAreaSell=false&itemId=529596149508","serviceIconList":[],"standingDate":0,"tag":{"isAsynDesc":true,"isBrandAttr":true,"isBrandSiteRightColumn":true,"isMedical":false,"isRightRecommend":true,"isShowEcityIcon":false,"isShowHouseIcon":false,"isShowMeiliXinde":false,"isShowTryReport":false,"isShowYuanchuanIcon":false},"tagsId":"258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842","tmallRateType":0,"tradeConfig":{"1":"//buy.taobao.com/auction/buy_now.jhtml","2":"//buy.tmall.com/order/confirm_order.htm","3":"//obuy.tmall.com/home/order/confirm_order.htm","4":"","5":"//buy.yao.95095.com/order/confirm_order.htm","7":"//tw.taobao.com/buy/auction/buy_now.jhtml"},"tradeParams":{},"tradeType":2,"url":{"BIDRedirectionitemDomain":"//paimai.taobao.com","buyBase":"//buy.taobao.com/auction","detailServer":"//detail.taobao.com","extMdskip":"//ext-mdskip.taobao.com","mallList":"//list.tmall.com","mdskip":"//mdskip.taobao.com","rate":"//rate.tmall.com","tbskip":"//tbskip.taobao.com","tgDetailDomain":"//detail.ju.taobao.com","tgDomain":"//ju.taobao.com","topUploadServerBaseUrl":"//upload.taobao.com","tradeBaseUrl":"//trade.taobao.com/trade","tradeForOldTmallBuy":"//stay.buy.tmall.com/order/confirm_order.htm","xCrossServer":"//mdetail.tmall.com"},"valCartInfo":{"cartUrl":"//cart.taobao.com/my_cart.htm?from=bdetail","itemId":"529596149508","statsUrl":"//go.mmstat.com/1.gif?logtype=2&category=cart_{loc}_50008619"},"valItemInfo":{"defSelected":[],"salesProp":{},"skuList":[{"names":"多品牌24款辣味","pvs":"31560:1448924508","skuId":"3199595102958"},{"names":"良品铺子12款辣味","pvs":"31560:1448924507","skuId":"3201073625524"}],"skuMap":{";31560:1448924507;":{"price":"99.00","priceCent":9900,"skuId":"3201073625524","stock":1272},";31560:1448924508;":{"price":"99.00","priceCent":9900,"skuId":"3199595102958","stock":3270}}},"valLoginIndicator":"//buy.taobao.com/auction/buy.htm?from=itemDetail&id=529596149508","valMode":128,"valPointRate":0.5,"valPointTimes":1,"valTimeLeft":558670});'
# brand = re.sub(".*\"brand\":\"(.*?)\"[,\\}].*",'\\1',info)
# html_parser = HTMLParser.HTMLParser()
# brand = html_parser.unescape(brand)
# print brand
# body = '"rateDetail":{"paginator":{"items":430,"lastPage":22,"page":1},"rateCount":{"picNum":57,"shop":0,"total":430,"used":37},"rateDanceInfo":{"currentMilles":1483342232501,"intervalMilles":64280608020,"showChooseTopic":false,"storeType":4},"rateList":[{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"1***g","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481095824000,"id":294764670508,"pics":["//img.alicdn.com/bao/uploaded/i1/132210335325279473/TB2tP8wXS0jpuFjy0FlXXc0bpXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/132210335325334676/TB2Je95XOBnpuFjSZFzXXaSrpXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-49,53;921-12-32,35;921-11-11,16;521-11-17,22;620-11-0,10;921-11-23,31;920-11-43,48;40221-11-36,42;","rateContent":"我对新卖的手机很满意，充电速度快，电池也耐用，指纹解锁也特别快，内存足，手机像素很好，简直是大爱，值得购买。","rateDate":"2016-12-07 15:30:24","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480761385000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"赵***4","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1482748388000,"id":297101655003,"pics":["//img.alicdn.com/bao/uploaded/i2/166140346089874177/TB2h.bebHBnpuFjSZFGXXX51pXa_!!0-rate.jpg"],"picsSmall":"","position":"10120-12-27,31;220-11-32,38;721-11-14,18;620-11-0,4;620-12-19,26;1020-11-19,26;521-11-9,13;921-11-5,8;","rateContent":"手机很好，反应快，电池耐用，手感很好，正品手机大品牌，良心商家，新手机未拆封","rateDate":"2016-12-26 18:33:08","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1481729722000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"简***7","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478129077000,"id":290437223206,"pics":["//img.alicdn.com/bao/uploaded/i4/108370313229722725/TB2QQ0yb8yN.eBjSZFgXXXmGXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i4/108370313229729718/TB2a5Hnbq9I.eBjy0FeXXXqwFXa_!!0-rate.jpg"],"picsSmall":"","position":"620-11-41,49;820-12-22,40;420-11-59,63;521-11-17,21;620-11-0,5;40221-11-50,58;620-11-6,16;","rateContent":"手机颜值高，质量很好没有什么问题，电池耐用。而且最令我惊喜的是还送一个充电宝给我。充电宝质量也很好。手机像素也不错哦。物流超快。","rateDate":"2016-11-03 07:24:37","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1477969875000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"酸***丶","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480765187000,"id":294348008190,"pics":"","picsSmall":"","position":"921-11-48,56;921-12-65,70;1221-12-25,30;820-12-17,24;620-12-0,16;620-11-31,40;40221-11-71,78;920-11-79,84;921-11-57,64;521-11-41,47;","rateContent":"手机使用了一段时间之后才来评论的，商家送了充电宝，耳机还有壳，对新买的手机很满意，电池特别耐用，充电速度也超级快，指纹解锁特别快，内存特别足，手机的像素很好，简直是大爱，以后也会继续关注小米手机","rateDate":"2016-12-03 19:39:47","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1479477748000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":{"commentId":"","commentTime":"2016-12-12 14:37:36","content":"手机不错，我一次买了两个，爸妈都用的很好","days":4,"pics":"","reply":""},"attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"s***4","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481524520000,"id":295442073931,"pics":"","picsSmall":"","position":"220-11-5,11;620-11-0,4;1020-11-5,11;521-11-21,25;921-11-26,31;\u0001","rateContent":"手机不错，原装的未拆封，用了段时间才评价，电池经用，运行速度快","rateDate":"2016-12-12 14:35:20","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481166762000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"w***哥","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480762747000,"id":294157225449,"pics":"","picsSmall":"","position":"620-12-43,47;920-11-29,37;521-11-38,42;920-11-58,62;920-11-20,22;520-11-73,78;920-11-84,89;920-11-49,57;921-11-79,83;10521-12-0,6;620-11-63,72;921-11-13,19;920-11-7,12;620-12-23,27;","rateContent":"2天不用充电，真的是可以 手机不卡还好，满意 手机质量,-很好没有什么问题，电池耐用 手机质量,-很好没有什么问题，电信号强 质量很好没有什么问 价格很便宜，反应很快，反正特别好，祝店家，生意兴隆","rateDate":"2016-12-03 18:59:07","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1480649395000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"卢***强","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480143105000,"id":293506112490,"pics":"","picsSmall":"","position":"1020-11-30,41;620-12-0,11;921-11-42,57;920-11-58,66;220-11-30,41;","rateContent":"一直都是在官方买手机的，这是第一次在天猫买，真的让我惊呆了，都是没拆封过的原装手机，手机一切的使用过程都是特别流畅，没有发现任何瑕疵","rateDate":"2016-11-26 14:51:45","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1480125815000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"李***l","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480853845000,"id":294551050506,"pics":["//img.alicdn.com/bao/uploaded/i1/133120333481578269/TB2TJdwXrJmpuFjSZFwXXaE4VXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i4/133120333481587733/TB2bENwXCFmpuFjSZFrXXayOXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/133120333481587737/TB28wlwXC8mpuFjSZFMXXaxpVXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/133120333481605675/TB2bdMRXhXkpuFjy0FiXXbUfFXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-0,5;420-11-12,17;920-11-18,20;920-11-25,29;1020-11-21,24;620-11-6,11;","rateContent":"店家人很好，宝贝很不错，快递也挺快，不错，是正品，五星好评，下次还会来！","rateDate":"2016-12-04 20:17:25","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480853411000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"雅***素","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1479562922000,"id":292570567410,"pics":"","picsSmall":"","position":"920-11-24,31;921-11-4,10;921-11-20,23;1020-11-0,3;520-11-11,19;921-11-37,40;","rateContent":"是正品，特别好用很快。价钱合适支持国产。快快快（重要的事说三遍）喜欢的亲?快下单，不要犹豫哦?","rateDate":"2016-11-19 21:42:02","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1479461031000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"l***1","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1476844183000,"id":288630654587,"pics":["//img.alicdn.com/bao/uploaded/i4/103630303208728962/TB2yLztXvTJXuFjSspeXXapipXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i2/103630303208735084/TB2BOtRX9uJ.eBjy0FgXXXBBXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i2/103630303208817791/TB2HdnCXZCO.eBjSZFzXXaRiVXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i1/103630303208847422/TB2JcdQX4eI.eBjSsplXXX6GFXa_!!0-rate.jpg"],"picsSmall":"","position":"620-11-13,19;10120-11-85,89;1321-11-56,64;920-11-90,99;920-12-49,55;10420-11-66,75;20521-12-28,41;820-11-76,84;920-11-105,110;30221-11-0,4;1321-11-44,48;921-11-5,11;20521-11-21,27;","rateContent":"音质很好 充电速度很快。 拍照效果很好。 续航能力很强，超强待机模式下一晚上只掉2%。 信号很好，电信4G满格。WiFi信号很好。 卖家发货的速度很快，还赠送了很多礼物，服务很好，非常满意的一次网购，下次还来！全5分好评！","rateDate":"2016-10-19 10:29:43","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1476842137000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"杏***8","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478420627000,"id":290861501288,"pics":"","picsSmall":"","position":"920-11-83,88;521-11-15,19;620-12-0,4;820-12-20,38;420-11-57,61;920-11-68,77;620-11-39,47;920-11-6,14;40221-11-48,56;10120-11-63,67;","rateContent":"信号强度：手机质量,-很好没有什么问题，电池耐用。而且最令我惊喜的是还送一个充电宝给我。充电宝质量也很好。手机像素也不错哦。物流超快。 服务很好，非常满意的一次网购，下次还来！全5分好评！。","rateDate":"2016-11-06 16:23:47","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":3,"tmallSweetPic":"tmall-grade-t3-18.png","tradeEndTime":1478418322000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"f***7","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480211227000,"id":293310962629,"pics":"","picsSmall":"","position":"620-12-0,5;420-13-20,27;920-11-55,63;121-11-64,67;","rateContent":"东西收到了。感觉不错。但是必须吐槽一下，物流实在太慢了，还有就是我买的银色发过来的却是金色。店主以后得多注意。手机用起来还不错，很漂亮。如果物流能快点就好了。","rateDate":"2016-11-27 09:47:07","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480211036000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"石***上","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480722086000,"id":294203969831,"pics":"","picsSmall":"","position":"820-12-23,29;920-11-34,36;621-12-30,33;620-11-5,16;1020-11-17,22;","rateContent":"良心评价，699元的手机真心不错，绝对的正品，还送了手机壳，纳米膜，好评！","rateDate":"2016-12-03 07:41:26","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480574975000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"h***1","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1482115012000,"id":296318845444,"pics":"","picsSmall":"","position":"920-11-14,18;1020-11-4,6;420-11-0,3;30221-11-19,29;","rateContent":"物流快，正品，使用一段时间，没有问题，声音再大一点就更完美！","rateDate":"2016-12-19 10:36:52","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481800348000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"z***3","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481957454000,"id":296011505237,"pics":"","picsSmall":"","position":"","rateContent":"拍照效果：手机很好。红米3s真是良心价格。配备的高通骁龙430的性能实际是比高通616更强。（一）最主要的是还支持高通3.0快充！！！！！但是充电头需要另外购买，不过对于699这个价格已经够了。（二）拿到手机后可以升级为MUUI8，安卓6.0。支持指纹识别，（三）这个识别速度非常快，一触摸直接就进入桌面，而不会先进入解锁再入桌面，这一点加快了解锁速度。非常非常快快！！！并且不需要在点亮屏幕情况下指纹识别，这一点比魅族所有手机都好（魅族手机需要先按电源键点亮屏幕才能指纹识别）（四）还有红外功能，可以做万能遥。","rateDate":"2016-12-17 14:50:54","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481957222000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"s***5","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478310080000,"id":290567889599,"pics":["//img.alicdn.com/bao/uploaded/i2/157780314714761321/TB292J6ck1M.eBjSZPiXXawfpXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i1/157780314714806566/TB2wXbnbHOJ.eBjy1XaXXbNupXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-0,2;920-12-3,6;20520-11-15,19;920-11-10,14;920-11-7,9;","rateContent":"帅气，高大尚，好用，电也耐用，性价比高，","rateDate":"2016-11-05 09:41:20","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478188775000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":false,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"n***g","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481537390000,"id":295454883414,"pics":"","picsSmall":"","position":"420-11-47,52;620-11-0,5;10420-11-40,46;620-12-6,20;920-11-53,59;10120-11-31,39;","rateContent":"东西很不错，已经是在淘宝买的第二个手机了，从没有出过任何问题，卖家服务态度很好，发货速度极快，顺丰很给力，必须五星好评","rateDate":"2016-12-12 18:09:50","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481537243000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"t***9","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478512523000,"id":290804491254,"pics":"","picsSmall":"","position":"920-11-0,3;920-11-15,24;920-11-25,27;820-11-28,33;921-11-4,8;521-11-9,14;","rateContent":"挺好的，速度很快，电池很耐用，指纹之类的一切正常，好评，还送了礼品 。","rateDate":"2016-11-07 17:55:23","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478512047000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"y***界","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478822353000,"id":291266333946,"pics":"","picsSmall":"","position":"10120-11-41,48;820-12-49,63;820-11-64,72;620-11-0,12;920-11-26,34;420-11-35,40;721-11-0,12;","rateContent":"手机很好摸起来手感很不错，比小辣椒上了不止一个档次，用起来还是特别棒，物流也很快，老板人也特别好，跟他说送个入耳式的耳机也送了，送的东西也都很好，最后祝老板生意兴","rateDate":"2016-11-11 07:59:13","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478822167000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"h***雪","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1479525492000,"id":292358613086,"pics":"","picsSmall":"","position":"121-11-5,11;920-11-0,4;521-11-31,37;920-11-63,69;420-11-38,43;920-12-12,21;620-12-54,62;920-11-22,30;920-11-70,72;","rateContent":"非常满意.用起来很方便，比我预期的要好很多，很不错的一次购物，电池也很耐用，物流也很快，不知道以后会怎么样，但是现在整体来说，还是很喜欢的，很棒","rateDate":"2016-11-19 11:18:12","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1479362061000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""}],"searchinfo":"","tags":""}'
# mstr = '{'+body+'}'
# mjson = json.loads(mstr)
# print type(mjson["rateDetail"]["rateList"][0]['attributesMap']), mjson["rateDetail"]["rateList"][0]['attributesMap']
if re.compile(u".*型号").match(u"中兴型号"):
    print "ok"
else:
	print 'no'
402eacfc7ef4277c36fc7d4a9146efc52cca2a12
#coding:utf-8
import json
import re
import HTMLParser
import MySQLdb

# string="https://list.tmall.com/search_product.htm?q=%CA%D6%BB%FA"
# "https://pages.tmall.com/wow/tmall-3c/act/pcfp"
# "https://detail.tmall.com/item.htm?id=531959601469"
# "https://rate.tmall.com/list_detail_rate.htm?itemId=522567808844&sellerId=1&order=3&currentPage=15"
# "https://dsr-rate.tmall.com/list_dsr_info.htm?itemId=522567808844"
# "https://rate.tmall.com/listTagClouds.htm?itemId=526512408679"  
# mstr3 = re.sub(r"\\uff1a",r":",mstr1)
# mstr = re.sub(r"\\x26([a-zA-Z]{2,6});", r"&\1;", mstr3)
# json.loads(mstr)

# invalid_escape = re.compile(r'\\[0-7]{1,3}')  # up to 3 digits for byte values up to FF

# def replace_with_byte(match):
#     return chr(int(match.group(0)[1:], 8))

# def repair(brokenjson):
#     return invalid_escape.sub(replace_with_byte, brokenjson)

# json.loads(repair(mstr1))

# mstr = '\u5168\u7403\u8d2d\u0020\u5c0f\u7c73\u0028\u004d\u0049\u0029\u0020\u5c0f\u7c73\u0035\u0020\u5c0a\u4eab\u7248\u0020\u53cc\u5361\u53cc\u5f85\u0020\u5168\u7f51\u901a\u0034\u0047\u667a\u80fd\u624b\u673a\u0020\u9ed1\u8272\u0020\u73b0\u8d27\u0020\u5b98\u65b9\u6807\u914d'
# print mstr.
# info ='TShop.Setup({"api":{"descUrl":"//dsc.taobaocdn.com/i6/521/590/529596149508/TB1mLN1LpXXXXbPXVXX8qtpFXlX.desc%7Cvar%5Edesc%3Bsign%5E6320859899f27958d99fe27f1efac41f%3Blang%5Egbk%3Bt%5E1470982640","fetchDcUrl":"//hdc1.alicdn.com/asyn.htm?pageId=1032170926&userId=1816075766","httpsDescUrl":"//desc.alicdn.com/i6/521/590/529596149508/TB1mLN1LpXXXXbPXVXX8qtpFXlX.desc%7Cvar%5Edesc%3Bsign%5E6320859899f27958d99fe27f1efac41f%3Blang%5Egbk%3Bt%5E1470982640"},"apiAddCart":"//cart.taobao.com/add_cart_item.htm?item_id=529596149508","apiBeans":"//count.taobao.com/counter3?keys=SM_368_dsr-1816075766,ICCP_1_529596149508","apiBidCount":"//tbskip.taobao.com/json/show_bid_count.htm?itemNumId=529596149508&old_quantity=10122&date=1471400449000","apiItemViews":"//count.taobao.com/counter2?keys=ICVT_7_529596149508&inc=ICVT_7_529596149508&sign=973547d1fa8665ba384020544687500d8bb","apiTmallComboInfo":"//ext-mdskip.taobao.com/extension/queryTmallCombo.do?itemId=529596149508&comboGroup=0","apiTmallComboItem":"//ext-mdskip.taobao.com/extension/queryComboItem.do?comboGroup=0","cartEnable":true,"changeLocationApi":"//mdskip.taobao.com/core/changeLocation.htm?showShopProm=false&itemId=529596149508&notAllowOriginPrice=false&sellerUserTag4=1152930300701984131&sellerUserTag3=144467031796777088&tgTag=false&household=false&itemTags=258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842&service3C=false&isAreaSell=false&offlineShop=false&sellerUserTag2=18015686999670784&cartEnable=true&addressLevel=2&sellerUserTag=34672672&isRegionLevel=false&isSecKill=false&isUseInventoryCenter=false","cmCatId":"2","detail":{"addressLevel":2,"allowRate":true,"autoccUser":false,"canEditInItemDet":true,"cdn75":false,"defaultItemPrice":"99.00","enableAliMedicalComponent":true,"globalSellItem":false,"goNewAuctionFlow":false,"is0YuanBuy":false,"isAliTelecomNew":false,"isAlicomMasterCard":false,"isAllowReport":true,"isAutoFinancing":false,"isAutoYushou":false,"isBundleItem":false,"isCarCascade":false,"isCarService":false,"isCarYuEBao":false,"isContractPhoneItem":false,"isCyclePurchase":false,"isDownShelf":false,"isFullCarSell":false,"isH5NewLogin":true,"isHasPos":false,"isHasQualification":false,"isHiddenShopAction":false,"isHidePoi":false,"isHkDirectSale":false,"isHkItem":false,"isHkO2OItem":false,"isIFCShop":false,"isItemAllowSellerView":true,"isLadderGroupon":false,"isMeilihui":false,"isMemberShopItem":false,"isNewAttraction":true,"isNewMedical":false,"isNextDayService":false,"isO2OStaging":false,"isOnePriceCar":false,"isOtcDrug":false,"isPreSellBrand":false,"isPrescriptionDrug":false,"isPurchaseMallVipBuyer":false,"isRegionLevel":false,"isSavingEnergy":false,"isShowContentModuleTitle":false,"isShowEcityBasicSign":false,"isShowEcityDesc":false,"isShowEcityVerticalSign":false,"isShowPreClosed":false,"isSkuColorShow":false,"isSkuMemorized":false,"isTeMai":false,"isVitual3C":false,"loginBeforeCart":false,"mlhNewDesc":false,"pageType":"default","recommendBigMarkDownEndTime":"1453391999000","recommendBigMarkDownStartTime":"1452960000000","reviewListType":1,"show9sVideo":true,"showDiscountRecommend":false,"showFushiPoiInfo":false,"supermarketAndQianggou":false,"timeKillAuction":false,"tryReportDisable":false},"getProgressiveInfoApi":"//mdskip.taobao.com/core/getProgressiveInfo.do?platform_type=b2c&fromTryBeforeBuy=false&sellerId=1816075766&platform=tmall&category=50008619&sellerPercent=3_100_1.60;6_0_4.50;9_0_6.00","idsMod":[],"initApi":"//mdskip.taobao.com/core/initItemDetail.htm?isRegionLevel=false&isPurchaseMallPage=false&queryMemberRight=true&itemId=529596149508&household=false&tmallBuySupport=true&showShopProm=false&isUseInventoryCenter=false&tryBeforeBuy=false&cachedTimestamp=1471446578422&isForbidBuyItem=false&sellerPreview=false&isSecKill=false&service3C=false&isAreaSell=false&isApparel=false&offlineShop=false&addressLevel=2&cartEnable=true","initCspuExtraApi":"//ext-mdskip.taobao.com/extension/initCspuExtra.htm","initExtensionApi":"//ext-mdskip.taobao.com/extension/initExtension.htm?itemTags=258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842&sellerId=1816075766&spuId=526675144&brand=%C1%BC%C6%B7%C6%CC%D7%D3&showBreadCrumb=false&showShopProm=false&showSpuMaintainer=false&categoryId=50008619","initExtraApi":"//ext-mdskip.taobao.com/extension/initExtra.htm","isAliTripHK":false,"isAreaSell":false,"isDoubleElevenItem":true,"isHouseholdService":false,"isMeiz":false,"isMultiPoint":false,"isOnlyInMobile":false,"isService":false,"isSevenDaysRefundment":true,"isShowSizeHelper":false,"isShowSizeRecommend":false,"isTmallComboSupport":true,"isTripUser":false,"isWTContract":false,"itemDO":{"attachImgUrl":[],"auctionStatus":"0","auctionType":"b","brand":"&#33391;&#21697;&#38138;&#23376;","brandId":"7724367","brandSiteId":"0","brandSpecialSold":"false","categoryId":"50008619","cspuCategorySwitch":false,"encryptSellerId":"UvFgYMCNuMFcLMgTT","feature":"1","hasSku":true,"isBidden":false,"isCustomizedItem":false,"isDcAsyn":true,"isDefaultChooseTryBeforeBuy":false,"isElecCouponItem":false,"isEnterprisePath":false,"isInRepository":false,"isNewProGroup":false,"isOnline":true,"isSecondKillFromMobile":false,"isSecondKillFromPC":false,"isSecondKillFromPCAndWap":false,"isSupportTryBeforeBuy":false,"itemId":"529596149508","prov":"湖北","quantity":4542,"reservePrice":"99.00","rootCatId":"50002766","sellProgressiveRate":"3_100_1.60;6_0_4.50;9_0_6.00","sellerNickName":"%E5%90%83%E8%B4%A7%E9%A3%9F%E5%93%81%E4%B8%93%E8%90%A5%E5%BA%97","showCompanyPurchase":false,"spuId":"526675144","title":"良品铺子零食大礼包一箱的麻辣味零食礼包辣条套餐组合送女友生日","userId":"1816075766","validatorUrl":"//store.taobao.com/tadget/shop_stats.htm","weight":"0"},"newSelectCityApi":"//mdskip.taobao.com/json/detailSelectCity.do?isAreaSell=false&itemId=529596149508","rateConfig":{"itemId":529596149508,"listType":1,"rateCloudDisable":false,"rateEnable":true,"rateNewChartDisable":false,"rateScoreCacheDisable":false,"rateScoreDisable":false,"rateSubjectDisable":false,"sellerId":1816075766,"spuId":526675144,"tryReportDisable":false},"renderSystemServer":"//render.taobao.com","rstShopId":106739573,"selectCityApi":"//mdskip.taobao.com/core/selectCity.htm?isAreaSell=false&itemId=529596149508","selectRegionApi":"//mdskip.taobao.com/core/selectRegion.do?isAreaSell=false&itemId=529596149508","serviceIconList":[],"standingDate":0,"tag":{"isAsynDesc":true,"isBrandAttr":true,"isBrandSiteRightColumn":true,"isMedical":false,"isRightRecommend":true,"isShowEcityIcon":false,"isShowHouseIcon":false,"isShowMeiliXinde":false,"isShowTryReport":false,"isShowYuanchuanIcon":false},"tagsId":"258,651,843,1035,1163,1478,1483,1547,1611,1675,2049,2059,2443,2507,2635,2699,3974,4166,4491,4614,4678,4811,6603,7371,7755,7947,9675,11083,11339,12491,13707,15554,17665,17793,17921,19841,20673,20737,24833,25282,28353,28866,29889,30337,30977,33793,37569,40897,57026,59010,80386,82306,101762,107842","tmallRateType":0,"tradeConfig":{"1":"//buy.taobao.com/auction/buy_now.jhtml","2":"//buy.tmall.com/order/confirm_order.htm","3":"//obuy.tmall.com/home/order/confirm_order.htm","4":"","5":"//buy.yao.95095.com/order/confirm_order.htm","7":"//tw.taobao.com/buy/auction/buy_now.jhtml"},"tradeParams":{},"tradeType":2,"url":{"BIDRedirectionitemDomain":"//paimai.taobao.com","buyBase":"//buy.taobao.com/auction","detailServer":"//detail.taobao.com","extMdskip":"//ext-mdskip.taobao.com","mallList":"//list.tmall.com","mdskip":"//mdskip.taobao.com","rate":"//rate.tmall.com","tbskip":"//tbskip.taobao.com","tgDetailDomain":"//detail.ju.taobao.com","tgDomain":"//ju.taobao.com","topUploadServerBaseUrl":"//upload.taobao.com","tradeBaseUrl":"//trade.taobao.com/trade","tradeForOldTmallBuy":"//stay.buy.tmall.com/order/confirm_order.htm","xCrossServer":"//mdetail.tmall.com"},"valCartInfo":{"cartUrl":"//cart.taobao.com/my_cart.htm?from=bdetail","itemId":"529596149508","statsUrl":"//go.mmstat.com/1.gif?logtype=2&category=cart_{loc}_50008619"},"valItemInfo":{"defSelected":[],"salesProp":{},"skuList":[{"names":"多品牌24款辣味","pvs":"31560:1448924508","skuId":"3199595102958"},{"names":"良品铺子12款辣味","pvs":"31560:1448924507","skuId":"3201073625524"}],"skuMap":{";31560:1448924507;":{"price":"99.00","priceCent":9900,"skuId":"3201073625524","stock":1272},";31560:1448924508;":{"price":"99.00","priceCent":9900,"skuId":"3199595102958","stock":3270}}},"valLoginIndicator":"//buy.taobao.com/auction/buy.htm?from=itemDetail&id=529596149508","valMode":128,"valPointRate":0.5,"valPointTimes":1,"valTimeLeft":558670});'
# brand = re.sub(".*\"brand\":\"(.*?)\"[,\\}].*",'\\1',info)
# html_parser = HTMLParser.HTMLParser()
# brand = html_parser.unescape(brand)
# print brand
# body = '"rateDetail":{"paginator":{"items":430,"lastPage":22,"page":1},"rateCount":{"picNum":57,"shop":0,"total":430,"used":37},"rateDanceInfo":{"currentMilles":1483342232501,"intervalMilles":64280608020,"showChooseTopic":false,"storeType":4},"rateList":[{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"1***g","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481095824000,"id":294764670508,"pics":["//img.alicdn.com/bao/uploaded/i1/132210335325279473/TB2tP8wXS0jpuFjy0FlXXc0bpXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/132210335325334676/TB2Je95XOBnpuFjSZFzXXaSrpXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-49,53;921-12-32,35;921-11-11,16;521-11-17,22;620-11-0,10;921-11-23,31;920-11-43,48;40221-11-36,42;","rateContent":"我对新卖的手机很满意，充电速度快，电池也耐用，指纹解锁也特别快，内存足，手机像素很好，简直是大爱，值得购买。","rateDate":"2016-12-07 15:30:24","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480761385000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"赵***4","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1482748388000,"id":297101655003,"pics":["//img.alicdn.com/bao/uploaded/i2/166140346089874177/TB2h.bebHBnpuFjSZFGXXX51pXa_!!0-rate.jpg"],"picsSmall":"","position":"10120-12-27,31;220-11-32,38;721-11-14,18;620-11-0,4;620-12-19,26;1020-11-19,26;521-11-9,13;921-11-5,8;","rateContent":"手机很好，反应快，电池耐用，手感很好，正品手机大品牌，良心商家，新手机未拆封","rateDate":"2016-12-26 18:33:08","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1481729722000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"简***7","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478129077000,"id":290437223206,"pics":["//img.alicdn.com/bao/uploaded/i4/108370313229722725/TB2QQ0yb8yN.eBjSZFgXXXmGXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i4/108370313229729718/TB2a5Hnbq9I.eBjy0FeXXXqwFXa_!!0-rate.jpg"],"picsSmall":"","position":"620-11-41,49;820-12-22,40;420-11-59,63;521-11-17,21;620-11-0,5;40221-11-50,58;620-11-6,16;","rateContent":"手机颜值高，质量很好没有什么问题，电池耐用。而且最令我惊喜的是还送一个充电宝给我。充电宝质量也很好。手机像素也不错哦。物流超快。","rateDate":"2016-11-03 07:24:37","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1477969875000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"酸***丶","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480765187000,"id":294348008190,"pics":"","picsSmall":"","position":"921-11-48,56;921-12-65,70;1221-12-25,30;820-12-17,24;620-12-0,16;620-11-31,40;40221-11-71,78;920-11-79,84;921-11-57,64;521-11-41,47;","rateContent":"手机使用了一段时间之后才来评论的，商家送了充电宝，耳机还有壳，对新买的手机很满意，电池特别耐用，充电速度也超级快，指纹解锁特别快，内存特别足，手机的像素很好，简直是大爱，以后也会继续关注小米手机","rateDate":"2016-12-03 19:39:47","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1479477748000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":{"commentId":"","commentTime":"2016-12-12 14:37:36","content":"手机不错，我一次买了两个，爸妈都用的很好","days":4,"pics":"","reply":""},"attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"s***4","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481524520000,"id":295442073931,"pics":"","picsSmall":"","position":"220-11-5,11;620-11-0,4;1020-11-5,11;521-11-21,25;921-11-26,31;\u0001","rateContent":"手机不错，原装的未拆封，用了段时间才评价，电池经用，运行速度快","rateDate":"2016-12-12 14:35:20","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481166762000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"w***哥","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480762747000,"id":294157225449,"pics":"","picsSmall":"","position":"620-12-43,47;920-11-29,37;521-11-38,42;920-11-58,62;920-11-20,22;520-11-73,78;920-11-84,89;920-11-49,57;921-11-79,83;10521-12-0,6;620-11-63,72;921-11-13,19;920-11-7,12;620-12-23,27;","rateContent":"2天不用充电，真的是可以 手机不卡还好，满意 手机质量,-很好没有什么问题，电池耐用 手机质量,-很好没有什么问题，电信号强 质量很好没有什么问 价格很便宜，反应很快，反正特别好，祝店家，生意兴隆","rateDate":"2016-12-03 18:59:07","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1480649395000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"卢***强","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480143105000,"id":293506112490,"pics":"","picsSmall":"","position":"1020-11-30,41;620-12-0,11;921-11-42,57;920-11-58,66;220-11-30,41;","rateContent":"一直都是在官方买手机的，这是第一次在天猫买，真的让我惊呆了，都是没拆封过的原装手机，手机一切的使用过程都是特别流畅，没有发现任何瑕疵","rateDate":"2016-11-26 14:51:45","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1480125815000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"李***l","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480853845000,"id":294551050506,"pics":["//img.alicdn.com/bao/uploaded/i1/133120333481578269/TB2TJdwXrJmpuFjSZFwXXaE4VXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i4/133120333481587733/TB2bENwXCFmpuFjSZFrXXayOXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/133120333481587737/TB28wlwXC8mpuFjSZFMXXaxpVXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i3/133120333481605675/TB2bdMRXhXkpuFjy0FiXXbUfFXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-0,5;420-11-12,17;920-11-18,20;920-11-25,29;1020-11-21,24;620-11-6,11;","rateContent":"店家人很好，宝贝很不错，快递也挺快，不错，是正品，五星好评，下次还会来！","rateDate":"2016-12-04 20:17:25","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480853411000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"雅***素","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1479562922000,"id":292570567410,"pics":"","picsSmall":"","position":"920-11-24,31;921-11-4,10;921-11-20,23;1020-11-0,3;520-11-11,19;921-11-37,40;","rateContent":"是正品，特别好用很快。价钱合适支持国产。快快快（重要的事说三遍）喜欢的亲?快下单，不要犹豫哦?","rateDate":"2016-11-19 21:42:02","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1479461031000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"l***1","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1476844183000,"id":288630654587,"pics":["//img.alicdn.com/bao/uploaded/i4/103630303208728962/TB2yLztXvTJXuFjSspeXXapipXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i2/103630303208735084/TB2BOtRX9uJ.eBjy0FgXXXBBXXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i2/103630303208817791/TB2HdnCXZCO.eBjSZFzXXaRiVXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i1/103630303208847422/TB2JcdQX4eI.eBjSsplXXX6GFXa_!!0-rate.jpg"],"picsSmall":"","position":"620-11-13,19;10120-11-85,89;1321-11-56,64;920-11-90,99;920-12-49,55;10420-11-66,75;20521-12-28,41;820-11-76,84;920-11-105,110;30221-11-0,4;1321-11-44,48;921-11-5,11;20521-11-21,27;","rateContent":"音质很好 充电速度很快。 拍照效果很好。 续航能力很强，超强待机模式下一晚上只掉2%。 信号很好，电信4G满格。WiFi信号很好。 卖家发货的速度很快，还赠送了很多礼物，服务很好，非常满意的一次网购，下次还来！全5分好评！","rateDate":"2016-10-19 10:29:43","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1476842137000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"杏***8","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478420627000,"id":290861501288,"pics":"","picsSmall":"","position":"920-11-83,88;521-11-15,19;620-12-0,4;820-12-20,38;420-11-57,61;920-11-68,77;620-11-39,47;920-11-6,14;40221-11-48,56;10120-11-63,67;","rateContent":"信号强度：手机质量,-很好没有什么问题，电池耐用。而且最令我惊喜的是还送一个充电宝给我。充电宝质量也很好。手机像素也不错哦。物流超快。 服务很好，非常满意的一次网购，下次还来！全5分好评！。","rateDate":"2016-11-06 16:23:47","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":3,"tmallSweetPic":"tmall-grade-t3-18.png","tradeEndTime":1478418322000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:官方标配;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"f***7","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480211227000,"id":293310962629,"pics":"","picsSmall":"","position":"620-12-0,5;420-13-20,27;920-11-55,63;121-11-64,67;","rateContent":"东西收到了。感觉不错。但是必须吐槽一下，物流实在太慢了，还有就是我买的银色发过来的却是金色。店主以后得多注意。手机用起来还不错，很漂亮。如果物流能快点就好了。","rateDate":"2016-11-27 09:47:07","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480211036000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"石***上","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1480722086000,"id":294203969831,"pics":"","picsSmall":"","position":"820-12-23,29;920-11-34,36;621-12-30,33;620-11-5,16;1020-11-17,22;","rateContent":"良心评价，699元的手机真心不错，绝对的正品，还送了手机壳，纳米膜，好评！","rateDate":"2016-12-03 07:41:26","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":0,"tmallSweetPic":"","tradeEndTime":1480574975000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"h***1","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1482115012000,"id":296318845444,"pics":"","picsSmall":"","position":"920-11-14,18;1020-11-4,6;420-11-0,3;30221-11-19,29;","rateContent":"物流快，正品，使用一段时间，没有问题，声音再大一点就更完美！","rateDate":"2016-12-19 10:36:52","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481800348000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"z***3","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481957454000,"id":296011505237,"pics":"","picsSmall":"","position":"","rateContent":"拍照效果：手机很好。红米3s真是良心价格。配备的高通骁龙430的性能实际是比高通616更强。（一）最主要的是还支持高通3.0快充！！！！！但是充电头需要另外购买，不过对于699这个价格已经够了。（二）拿到手机后可以升级为MUUI8，安卓6.0。支持指纹识别，（三）这个识别速度非常快，一触摸直接就进入桌面，而不会先进入解锁再入桌面，这一点加快了解锁速度。非常非常快快！！！并且不需要在点亮屏幕情况下指纹识别，这一点比魅族所有手机都好（魅族手机需要先按电源键点亮屏幕才能指纹识别）（四）还有红外功能，可以做万能遥。","rateDate":"2016-12-17 14:50:54","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481957222000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典银白;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"s***5","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478310080000,"id":290567889599,"pics":["//img.alicdn.com/bao/uploaded/i2/157780314714761321/TB292J6ck1M.eBjSZPiXXawfpXa_!!0-rate.jpg","//img.alicdn.com/bao/uploaded/i1/157780314714806566/TB2wXbnbHOJ.eBjy1XaXXbNupXa_!!0-rate.jpg"],"picsSmall":"","position":"920-11-0,2;920-12-3,6;20520-11-15,19;920-11-10,14;920-11-7,9;","rateContent":"帅气，高大尚，好用，电也耐用，性价比高，","rateDate":"2016-11-05 09:41:20","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478188775000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":false,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:套餐一;存储容量:32GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"n***g","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1481537390000,"id":295454883414,"pics":"","picsSmall":"","position":"420-11-47,52;620-11-0,5;10420-11-40,46;620-12-6,20;920-11-53,59;10120-11-31,39;","rateContent":"东西很不错，已经是在淘宝买的第二个手机了，从没有出过任何问题，卖家服务态度很好，发货速度极快，顺丰很给力，必须五星好评","rateDate":"2016-12-12 18:09:50","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1481537243000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:套餐一;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"t***9","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478512523000,"id":290804491254,"pics":"","picsSmall":"","position":"920-11-0,3;920-11-15,24;920-11-25,27;820-11-28,33;921-11-4,8;521-11-9,14;","rateContent":"挺好的，速度很快，电池很耐用，指纹之类的一切正常，好评，还送了礼品 。","rateDate":"2016-11-07 17:55:23","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478512047000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典深灰;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"y***界","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1478822353000,"id":291266333946,"pics":"","picsSmall":"","position":"10120-11-41,48;820-12-49,63;820-11-64,72;620-11-0,12;920-11-26,34;420-11-35,40;721-11-0,12;","rateContent":"手机很好摸起来手感很不错，比小辣椒上了不止一个档次，用起来还是特别棒，物流也很快，老板人也特别好，跟他说送个入耳式的耳机也送了，送的东西也都很好，最后祝老板生意兴","rateDate":"2016-11-11 07:59:13","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1478822167000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""},{"aliMallSeller":false,"anony":true,"appendComment":"","attributes":"","attributesMap":"","aucNumId":"","auctionPicUrl":"","auctionPrice":"","auctionSku":"网络类型:移动4G/联通4G/电信4G;机身颜色:经典金色;套餐类型:官方标配;存储容量:16GB","auctionTitle":"","buyCount":0,"carServiceLocation":"","cmsSource":"天猫","displayRatePic":"","displayRateSum":0,"displayUserLink":"","displayUserNick":"h***雪","displayUserNumId":"","displayUserRateLink":"","dsr":0.0,"fromMall":true,"fromMemory":0,"gmtCreateTime":1479525492000,"id":292358613086,"pics":"","picsSmall":"","position":"121-11-5,11;920-11-0,4;521-11-31,37;920-11-63,69;420-11-38,43;920-12-12,21;620-12-54,62;920-11-22,30;920-11-70,72;","rateContent":"非常满意.用起来很方便，比我预期的要好很多，很不错的一次购物，电池也很耐用，物流也很快，不知道以后会怎么样，但是现在整体来说，还是很喜欢的，很棒","rateDate":"2016-11-19 11:18:12","reply":"","sellerId":1718094179,"serviceRateContent":"","structuredRateList":[],"tamllSweetLevel":2,"tmallSweetPic":"tmall-grade-t2-18.png","tradeEndTime":1479362061000,"tradeId":"","useful":true,"userIdEncryption":"","userInfo":"","userVipLevel":0,"userVipPic":""}],"searchinfo":"","tags":""}'
# mstr = '{'+body+'}'
# mjson = json.loads(mstr)
# print type(mjson["rateDetail"]["rateList"][0]['attributesMap']), mjson["rateDetail"]["rateList"][0]['attributesMap']
if re.compile(u".*型号").match(u"中兴型号"):
    print "ok"
else:
	print 'no'