Group Buying client exercises (1: Think about it) and Group Buying client exercises and thoughts

Source: Internet
Author: User

Group Buying client exercises (1: Think about it) and Group Buying client exercises and thoughts
Group Buying app project exercises

This is because it is good for future work.

After reading the APIS provided by several group buying websites, it's okay to contact the third-party group buying navigation websites.

There are few poor things in the api, And the api is an xml file. There are developer documents and other instructions. Some things can only be guessed to know what it is.

A city list and a commodity details are like this.

  

Start with the xml file.

About 30 M in a city. A rough line. Look at other demos. Some people have loaded all the parsing and the website speed limit is about 1024/160 K. The calculation is about 30 M * 192 K = s. 3 minutes

I opened an app and waited for three minutes to see the data. Even the demo exercise brother could not bear it.

Then, you can only regularly update the parsing results on your own every day, open a server, put the data on it, and then fetch it.

This is initially the case.

  

Now, it's quite convenient to have a free app background without spending money on cloud hosts. However, after all, just a few cloud functions can only use JavaScript

Hahaha start re-entering js tomorrow

There is nothing wrong with the data. I'm excited here to cry.

Analyze the xml file and confirm the data and name.

  

1 <? Xml version = "1.0" encoding = "UTF-8"?> 2 <response code = "0" date = "2014-10-05 14:22:48 + 08:00" message = "OK"> 3 <deals> 4 <data> 5 <deal> <! -- The transaction is translated into a group purchase. --> 6 <website> Meituan </website> <! -- Website name --> 7 <deal_more_img> <! -- √ --> 8 <! [CDATA [region> </deal_more_img> 9 <reservation> 1 </reservation> <! -- Whether reservation is required. 1 does not require 0. √ --> 10 <destination> </destination> <! -- Destination? Skip --> 11 <partner> 0 </partner> <! -- The partner does not know what to Skip --> 12 <city_name> Mudanjiang </city_name> <! -- City name √ --> 13 <city_id> mudanjiang </city_id> <! -- City ID √ --> 14 <city_url> http://mdj.meituan.com </city_url> <! -- City URL --> 15 <deal_id> 24900146 </deal_id> <! -- Group Buying ID √ --> 16 <deal_title> all-day general use of xiangyuan self-help barbecue West three stores, free WiFi </deal_title> <! -- Group title √ --> 17 <deal_rank> 0 </deal_rank> <! -- Group Buying level --> 18 <deal_url> http://mdj.meituan.com/deal/24900146.html </deal_url> <! -- Desktop Web --> 19 <deal_wap_url> http:// I .meituan.com/deal/24900146.html </deal_wap_url> <! -- Mobile Web page √ --> 20 <deal_img> http://p0.meituan.net/275.168/deal/__41159546__7067135.jpg </deal_img> <! -- Group purchases the picture with the title √ --> 21 <deal_cate_id> 202 </deal_cate_id> <! -- Food ID √ --> 22 <deal_cate> buffet </deal_cate> <! -- Food category √ --> 23 <deal_subcate_id> 171 </deal_subcate_id> <! -- Food sub-ID √ --> 24 <deal_subcate> barbecue buffet </deal_subcate> <! -- Food sub-category √ --> 25 <deal_desc> <! -- Group Buying description √ --> 26 <! [CDATA [for 35 RMB only! Yuan worth of xiangyuan self-help barbecue West three stores all day universal, provides free WiFi. The remaining 150 GB (including 150 GB) after meals will be paid based on in-store conditions. 27]> </deal_desc> 28 <value> 42 </value> <! -- Original price √ --> 29 <price> 35.00 </price> <! -- Current price √ --> 30 <rebate> 8.3 </rebate> <! -- Discount √ --> 31 <refund> 1 </refund> <! -- Expired refund √ --> 32 <sales_min> 1 </sales_min> <! -- How many should I buy at least? Skip --> 33 <sales_num> 778 </sales_num> <! -- How many are sold √ --> 34 <sold_out> no </sold_out> <! -- Sold out? √ --> 35 <is_post> no </is_post> <! -- Benchmark? --> 36 <start_time> 1399305600 </start_time> <! -- Start time √ --> 37 <end_time> 1414908000 </end_time> <! -- End time √ --> 38 <coupon_start_time> 1399305600 </coupon_start_time> <! -- Coupon Start Time --> 39 <coupon_end_time> 1414943999 </coupon_end_time> <! -- Coupon End Time --> 40 <deal_tips> <! -- Group Buying reminder √ --> 41 <! [CDATA [dear user, in order to meet your consumption needs, we have negotiated with the merchant to extend the validity period to November 02, 2014, where the unavailable Date: thank you for your support and understanding of Meituan ~ 42 validity period: May 11, 2014 to May 31-6 unavailable Date: August 2, September 8-2, September 10, October 1-10, December 24-12,-7,-25, 2014-11-1144 no reservation is required. During peak consumption, a minimum of 45 yuan/person for the elderly may be required. Student soldiers can enjoy a minimum of 35 yuan/person with valid certificates, 46 children are free of charge in height below 1.1 meters, 1.1 meters -- 1.4 meters 25 yuan/bit, 47 This group purchase is limited to three western shops use 48 tableware free of charge, after the meal remaining 150g (including 150g) above, the meal space fee is 42 yuan (in-store payment) 49 group buying users cannot enjoy other discounts for sellers at the same time 50 part of the dishes vary for seasonal reasons, please refer to the actual supply in the store for 51]> </deal_tips> 52 <deal_wow> 53 <! [CDATA []> </deal_wow> <! -- Wonderful comments --> 54 <deal_range> </deal_range> <! -- Scope does not understand --> 55 <deal_range_id> 0 </deal_range_id> <! -- Range ID --> 56 <deal_district_id> 2689 </deal_district_id> <! -- Zone ID √ --> 57 <deal_district_name> Xi 'an district </deal_district_name> <! -- Zone name √ --> 58 <deal_address> <! -- Address √ --> 59 <! [CDATA [northwest corner of the intersection of West 3 Road and West peony Street]> </deal_address> 60 <deal_lng> 129.610277 </deal_lng> <! -- Longitude --> 61 <deal_lat> 44.577426 </deal_lat> <! -- Latitude --> 62 <deal_name> xiangyuan self-help barbecue </deal_name> <! -- Group buying name √ --> 63 <deal_seller> <! -- Group Buying merchant name √ --> 64 <! [CDATA [xiangyuan self-help barbecue West three stores]> </deal_seller> 65 <deal_phones> <! -- Merchant phone √ --> 66 <! [CDATA [0453-6223888/6685777]> </deal_phones> 67 <deal_roomtype> </deal_roomtype> <! -- Space type --> 68 <deal_roomtime> </deal_roomtime> <! -- Space size --> 69 <coupon> 0 </coupon> <! -- Coupon free --> 70 </deal> 71 <shops> 72 <shop> 73 <shop_name> xiangyuan self-help barbecue (West three road store) </shop_name> <! -- Merchant name √ --> 74 <shop_dpid> 0 </shop_dpid> <! -- Merchant dID --> 75 <shop_poiid> 4765774 </shop_poiid> <! -- Location ID --> 76 <shop_tel> 0453-6223888/6685777 </shop_tel> <! -- Merchant phone √ --> 77 <shop_addr> <! -- Merchant address √ --> 78 <! [CDATA [northwest corner of the intersection of West 3 Road and West peony Street]> </shop_addr> 79 <shop_area> <! -- Merchant shard √ --> 80 <! [CDATA [Xi 'an district]> </shop_area> 81 <shop_long> 129.610277 </shop_long> <! -- Longitude of the merchant --> 82 <shop_lat> 44.577426 </shop_lat> <! -- Business latitude --> 83 <shop_city> Mudanjiang </shop_city> <! -- Merchant City √ --> 84 <shop_trafficinfo> <! -- Seller transportation details --> 85 <! [CDATA []> </shop_trafficinfo> 86 </shop> 87 </shops> 88 </data> 89 </deals> 90 </response>

Let's start from here today.

 

  

  


Mathematical questions (Exercise 13 questions in the first grade)

The numbers 21, 22, 23, 24, 25, 26, 27, 28, and 29 are arranged in three rows, three in each row, add the numbers of the horizontal, vertical, and oblique rows to 75.




Think about this problem

Pursuing "foreign style" and "fashion" in terms of clothing, food, housing, and travel --- this is vanity.

Traveling to Yunnan, Tibet, Guizhou, and other remote areas shows great interest in the living environment and lifestyle of local ethnic minorities-this is by nature

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.