|
@@ -27,6 +27,8 @@ class StoreLocations(Resource):
|
|
|
result['title'] = line.split('title: ')[-1].replace('"', '').replace('\n', '')
|
|
|
elif 'type: ' in line:
|
|
|
result['type'] = line.split('type: ')[-1].replace('"', '').replace('\n', '')
|
|
|
+ elif 'url: ' in line:
|
|
|
+ result['url'] = line.split('url: ')[-1].replace('"', '').replace('\n', '')
|
|
|
elif '<amp-img' in line:
|
|
|
is_amp_img = True
|
|
|
elif 'h2 class="mb-4"' in line:
|
|
@@ -83,7 +85,7 @@ class StoreLocations(Resource):
|
|
|
title=store_data.get('title'),
|
|
|
date=get_now_time(),
|
|
|
type=store_data.get('type'),
|
|
|
- district=self._get_district_name(store_data.get('title')),
|
|
|
+ url=store_data.get('url'),
|
|
|
amp_imgs=self._get_amp_img_md(store_data.get('imgs'), store_data.get('title')),
|
|
|
store=store_data.get('store'),
|
|
|
hour=store_data.get('hour'),
|