- Регистрация
- 23.12.2014
- Сообщения
- 7 379
- Благодарностей
- 2 041
- Баллы
- 113
Всем привет!
Кто подскажет какие данные забирать при парсинге с 2GIS, что там самое важное, пример Json, ну и в каком формате на выходе лучше сохранять ?
Кто подскажет какие данные забирать при парсинге с 2GIS, что там самое важное, пример Json, ну и в каком формате на выходе лучше сохранять ?
Код:
{"result":{"context_rubrics":[{"name":"Доставка готовых блюд","short_id":1203,"id":"1203","caption":"Доставка","group":0},{"name":"Кафе / рестораны быстрого питания","short_id":165,"id":"165","caption":"Быстрое питание","group":0},{"name":"Супермаркеты","short_id":350,"id":"350","caption":"Супермаркеты","group":0},{"name":"Гипермаркеты","short_id":12127,"id":"12127","caption":"Гипермаркеты","group":0},{"name":"Продовольственные магазины","short_id":373,"id":"373","caption":"Продуктовые магазины","group":0},{"name":"Киоски / магазины фастфудной продукции","short_id":21501,"id":"21501","caption":"Фастфудные киоски","group":0},{"name":"Ингредиенты / готовая продукция азиатской кухни","short_id":55540,"id":"55540","caption":"Продукция азиатской кухни, ингредиенты","group":0},{"name":"Заказ продовольственных / хозяйственных товаров на дом","short_id":47633,"id":"47633","caption":"Заказ товаров на дом","group":0}],"search_type":2,"request_type":"discovery","items":[{"reg_bc_url":"https://блабла","name":"Додо Пицца, пиццерия","point":{"lat":54.31672,"lon":48.396067},"contact_groups":[{"contacts":[{"type":"phone","text":"8‒800‒333‒00‒60","value":"88003330060","comment":"круглосуточная единая справочная - пн-вс"},{"type":"website","text":"dodopizza.ru/Ulyanovsk","value":"http://блабла","url":"http://dodopizza.ru/Ulyanovsk"},{"type":"website","text":"old.dodopizza.ru/ulyanovsk","value":"http://блабла","url":"http://old.dodopizza.ru/ulyanovsk"},{"type":"twitter","text":"https://twitter.com/@dodopizza","value":"https://twitter.com/@dodopizza","url":"https://twitter.com/@dodopizza"},{"type":"instagram","text":"https://instagram.com/dodoulyanovsk","value":"https://instagram.com/dodoulyanovsk","url":"https://instagram.com/dodoulyanovsk"},{"type":"vkontakte","text":"https://vk.com/dodoulyanovsk","value":"https://vk.com/dodoulyanovsk","url":"https://vk.com/dodoulyanovsk"}]}],"flags":{"photos":true},"name_ex":{"primary":"Додо Пицца","extension":"пиццерия","legal_name":"ООО Гранд пицца"},"external_content":[{"subtype":"regular","url":"https://блабла","label":"Посмотреть скидки","rubrics":[],"type":"discount"},{"type":"photo_album","count":14,"subtype":"common","main_photo_url":"http://блабла"}],"context":{"stop_factors":[{"name":"Десерты"},{"name":"Пицца"}]},"stat":{"source_type":2,"match_type":4,"rubr":"1203","adst":1517725200},"rubrics":[{"name":"Доставка готовых блюд","parent_id":"2","short_id":1203,"alias":"dostavka_gotovykh_blyud","id":"1203","kind":"primary"},{"name":"Пиццерии","parent_id":"2","short_id":51459,"alias":"piccerii","id":"51459","kind":"primary"},{"name":"Кафе","parent_id":"2","short_id":161,"alias":"kafe","id":"161","kind":"additional"},{"name":"Рестораны","parent_id":"2","short_id":164,"alias":"restorany","id":"164","kind":"additional"}],"region_id":"55","adm_div":[{"id":"7741223284506631","name":"Центр м-н","type":"living_area"}],"id":"70000001007251889_mEiDolp8p706311301IG0GGGfqisw754G6G42A89G5398CH1koyf2B39A98IG1I0GA3J4J18jwAguvG4547A201957H2H451H79","ads":{"text":"Круглосуточная доставка пиццы. Минимальная сумма доставки — 355 р.","warning":"ООО «Гранд пицца», Ульяновск, ОГРН 1117327001880.","article":"Круглосуточная бесплатная доставка пиццы в Ульяновске от 355 рублей.<br />Мы не замораживаем тесто, используем только свежие ингредиенты.<br />Ровные бортики, тянущийся сыр, воздушное тесто — в нашей пицце все должно быть идеально! <br />У нас действует правило: 60 минут или пицца бесплатно!","options":{"logo":{"img_url":"https://блабла/image.png","bg_color":"#ffffff","text_color":"#000000"},"actions":[{"name":"ХОЧУ ПИЦЦУ","platforms":["online","android","ios"],"caption":"ХОЧУ ПИЦЦУ","type":"link","value":"http://блабла?http://dodopizza.ru/Ulyanovsk#pizzas"}],"discount":true},"text_warning":"ООО «Гранд пицца», Ульяновск, ОГРН 1117327001880.","link":{"value":"http://блабла?https://dodopizza.ru/Ulyanovsk/BonusActions","text":"Наши акции"},"article_warning":"ООО «Гранд пицца», Ульяновск, ОГРН 1117327001880."},"address_comment":"1 этаж","reviews":{"is_reviewable_on_flamp":true,"general_rating":4,"items":[{"tag":"flamp","review_count":6,"recommendation_count":1,"rating":3.7,"is_reviewable":true},{"tag":"foursquare","rating":4,"review_count":27,"is_reviewable":true}],"org_review_count":45,"review_count":6,"recommendation_count":1,"rating":3.7,"org_rating":4,"general_review_count":33,"is_reviewable":true},"schedule":{"is_24x7":true,"Thu":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Sat":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Tue":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Sun":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Mon":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Wed":{"working_hours":[{"to":"24:00","from":"00:00"}]},"Fri":{"working_hours":[{"to":"24:00","from":"00:00"}]}},"address":{"postcode":"432000","components":[{"type":"street_number","number":"30","street":"Гончарова","street_id":"7741300593918079"}],"building_id":"7741197514707361"},"address_name":"Гончарова, 30","type":"branch","org":{"id":"7741099830715067","name":"Додо Пицца, пиццерия, ООО Гранд пицца","branch_count":3}}],"total":1011,"search_attributes":{"is_partial":false,"context_rubrics":["1203","165","350","12127","373","21501","55540","47633"],"stat":{"adst":1517725200,"lang":"ru_RU"},"advertisers":[{"org":"7741099830715067","rubr":"1203"}],"geo_restriction":false,"type_total_matches":{"geo":0,"org":1011,"transport":0,"unclassified":0}}}}