質問編集履歴

3

xmlフォーマット

2019/06/25 02:17

投稿

beginner_t
beginner_t

スコア716

test CHANGED
File without changes
test CHANGED
@@ -248,259 +248,257 @@
248
248
 
249
249
  <Hit index="1">
250
250
 
251
- <Name>パナソニック 空気清浄機脱臭フィルターF-ZDJD30</Name>
251
+ <Name>パナソニック 空気清浄機脱臭フィルターF-ZDJD30</Name>
252
-
252
+
253
- <Description>
253
+ <Description>
254
254
 
255
255
  対応機種:F-PDJ30-A/F-PDK30-A/F-PDJ30-C/F-PDL30-A/F-PDK30-C/F-PDM30-A/F-PDL30-C/F-PDJ30-P/F-PDK30-P/F-PDL30-P/F-PDM30-W/F-PDP30-W/F-PDR30-W/ ※メーカー取り寄せ品 キャンセル不可 ご注文日から1〜3営業日で出荷 (メーカー在庫切れ、生産完了の場合もございます。その際は後日納期をメールにてご連絡致します。)
256
256
 
257
257
  </Description>
258
258
 
259
- <Headline/>
259
+ <Headline/>
260
-
260
+
261
- <Url>
261
+ <Url>
262
262
 
263
263
  https://store.shopping.yahoo.co.jp/w-yutori/4942302194260.html
264
264
 
265
265
  </Url>
266
266
 
267
- <ReleaseDate/>
267
+ <ReleaseDate/>
268
-
268
+
269
- <Availability>instock</Availability>
269
+ <Availability>instock</Availability>
270
-
270
+
271
- <Code>w-yutori_4942302194260</Code>
271
+ <Code>w-yutori_4942302194260</Code>
272
-
272
+
273
- <Condition>new</Condition>
273
+ <Condition>new</Condition>
274
-
274
+
275
- <PersonId/>
275
+ <PersonId/>
276
-
276
+
277
- <ProductId/>
277
+ <ProductId/>
278
-
278
+
279
- <Image>
279
+ <Image>
280
-
280
+
281
- <Id/>
281
+ <Id/>
282
-
282
+
283
- <Small>https://s.yimg.jp/images/sh/noimage/76x76.gif</Small>
283
+ <Small>https://s.yimg.jp/images/sh/noimage/76x76.gif</Small>
284
-
284
+
285
- <Medium>https://s.yimg.jp/images/sh/noimage/146x146.gif</Medium>
285
+ <Medium>https://s.yimg.jp/images/sh/noimage/146x146.gif</Medium>
286
-
286
+
287
- </Image>
287
+ </Image>
288
-
288
+
289
- <Review>
289
+ <Review>
290
-
290
+
291
- <Rate>0.00</Rate>
291
+ <Rate>0.00</Rate>
292
-
292
+
293
- <Count>0</Count>
293
+ <Count>0</Count>
294
-
294
+
295
- <Url>
295
+ <Url>
296
296
 
297
297
  https://shopping.yahoo.co.jp/review/item/list?store_id=w-yutori&page_key=4942302194260
298
298
 
299
299
  </Url>
300
300
 
301
- </Review>
302
-
303
- <Affiliate>
304
-
305
- <Rate>10.0</Rate>
306
-
307
- </Affiliate>
308
-
309
- <Price currency="JPY">1640</Price>
310
-
311
- <PremiumPrice/>
312
-
313
- <PriceLabel taxIncluded="true">
314
-
315
- <FixedPrice/>
316
-
317
- <DefaultPrice>1640</DefaultPrice>
318
-
319
- <SalePrice/>
320
-
321
- <PremiumPriceStatus>0</PremiumPriceStatus>
322
-
323
- <PremiumPrice>1640</PremiumPrice>
324
-
325
- <PremiumDiscountType/>
326
-
327
- <PremiumDiscountRate/>
328
-
329
- <BaseFixedPrice/>
330
-
331
- <BaseDefaultPrice>1519</BaseDefaultPrice>
332
-
333
- <BaseSalePrice/>
334
-
335
- <BasePremiumPrice>1519</BasePremiumPrice>
336
-
337
- <PeriodStart>2019-06-24T10:00:00+09:00</PeriodStart>
338
-
339
- <PeriodEnd>2019-06-26T02:00:00+09:00</PeriodEnd>
340
-
341
- </PriceLabel>
342
-
343
- <Point>
344
-
345
- <Amount>16</Amount>
346
-
347
- <Times>1</Times>
348
-
349
- <PremiumAmount>16</PremiumAmount>
350
-
351
- <PremiumTimes>1</PremiumTimes>
352
-
353
- </Point>
354
-
355
- <Shipping>
356
-
357
- <Code>1</Code>
358
-
359
- <Name>設定無し</Name>
360
-
361
- </Shipping>
362
-
363
- <Category>
364
-
365
- <Current>
366
-
367
- <Id>26321</Id>
368
-
369
- <Name>空気清浄機交換フィルター</Name>
370
-
371
- </Current>
372
-
373
- </Category>
374
-
375
- <CategoryIdPath>
376
-
377
- <Category>
378
-
379
- <Id>1</Id>
380
-
381
- </Category>
382
-
383
- <Category>
384
-
385
- <Id>2505</Id>
386
-
387
- </Category>
388
-
389
- <Category>
390
-
391
- <Id>4740</Id>
392
-
393
- </Category>
394
-
395
- <Category>
396
-
397
- <Id>26318</Id>
398
-
399
- </Category>
400
-
401
- <Category>
402
-
403
- <Id>26321</Id>
404
-
405
- </Category>
406
-
407
- </CategoryIdPath>
408
-
409
- <Brands>
410
-
411
- <Name>パナソニック</Name>
412
-
413
- <Path>
414
-
415
- <Brand>
416
-
417
- <Id>1</Id>
418
-
419
- </Brand>
420
-
421
- <Brand>
422
-
423
- <Id>1460</Id>
424
-
425
- </Brand>
426
-
427
- </Path>
428
-
429
- </Brands>
430
-
431
- <JanCode/>
432
-
433
- <Model/>
434
-
435
- <IsbnCode/>
436
-
437
- <Store>
438
-
439
- <Id>w-yutori</Id>
440
-
441
- <Name>Web Shop ゆとり Yahoo!店</Name>
442
-
443
- <SellerType>B</SellerType>
444
-
445
- <Url>https://store.shopping.yahoo.co.jp/w-yutori/</Url>
446
-
447
- <Payment>
448
-
449
- <Method>
450
-
451
- <Code>1</Code>
452
-
453
- <Name>クレジットカード</Name>
454
-
455
- </Method>
456
-
457
- <Method>
458
-
459
- <Code>16</Code>
460
-
461
- <Name>Yahoo!ウォレットに登録しているクレジットカード</Name>
462
-
463
- </Method>
464
-
465
- <Method>
466
-
467
- <Code>4</Code>
468
-
469
- <Name>商品代引</Name>
470
-
471
- </Method>
472
-
473
- <Method>
474
-
475
- <Code>2</Code>
476
-
477
- <Name>銀行振込</Name>
478
-
479
- </Method>
480
-
481
- <Method>
482
-
483
- <Code>8</Code>
484
-
485
- <Name>郵便振替</Name>
486
-
487
- </Method>
488
-
489
- <Method>
490
-
491
- <Code>32</Code>
492
-
493
- <Name>モバイルSuica</Name>
494
-
495
- </Method>
496
-
497
- <Method>
498
-
499
- <Code>64</Code>
500
-
501
-
502
-
503
- </Hit>
301
+ </Review>
302
+
303
+ <Affiliate>
304
+
305
+ <Rate>10.0</Rate>
306
+
307
+ </Affiliate>
308
+
309
+ <Price currency="JPY">1640</Price>
310
+
311
+ <PremiumPrice/>
312
+
313
+ <PriceLabel taxIncluded="true">
314
+
315
+ <FixedPrice/>
316
+
317
+ <DefaultPrice>1640</DefaultPrice>
318
+
319
+ <SalePrice/>
320
+
321
+ <PremiumPriceStatus>0</PremiumPriceStatus>
322
+
323
+ <PremiumPrice>1640</PremiumPrice>
324
+
325
+ <PremiumDiscountType/>
326
+
327
+ <PremiumDiscountRate/>
328
+
329
+ <BaseFixedPrice/>
330
+
331
+ <BaseDefaultPrice>1519</BaseDefaultPrice>
332
+
333
+ <BaseSalePrice/>
334
+
335
+ <BasePremiumPrice>1519</BasePremiumPrice>
336
+
337
+ <PeriodStart>2019-06-24T10:00:00+09:00</PeriodStart>
338
+
339
+ <PeriodEnd>2019-06-26T02:00:00+09:00</PeriodEnd>
340
+
341
+ </PriceLabel>
342
+
343
+ <Point>
344
+
345
+ <Amount>16</Amount>
346
+
347
+ <Times>1</Times>
348
+
349
+ <PremiumAmount>16</PremiumAmount>
350
+
351
+ <PremiumTimes>1</PremiumTimes>
352
+
353
+ </Point>
354
+
355
+ <Shipping>
356
+
357
+ <Code>1</Code>
358
+
359
+ <Name>設定無し</Name>
360
+
361
+ </Shipping>
362
+
363
+ <Category>
364
+
365
+ <Current>
366
+
367
+ <Id>26321</Id>
368
+
369
+ <Name>空気清浄機交換フィルター</Name>
370
+
371
+ </Current>
372
+
373
+ </Category>
374
+
375
+ <CategoryIdPath>
376
+
377
+ <Category>
378
+
379
+ <Id>1</Id>
380
+
381
+ </Category>
382
+
383
+ <Category>
384
+
385
+ <Id>2505</Id>
386
+
387
+ </Category>
388
+
389
+ <Category>
390
+
391
+ <Id>4740</Id>
392
+
393
+ </Category>
394
+
395
+ <Category>
396
+
397
+ <Id>26318</Id>
398
+
399
+ </Category>
400
+
401
+ <Category>
402
+
403
+ <Id>26321</Id>
404
+
405
+ </Category>
406
+
407
+ </CategoryIdPath>
408
+
409
+ <Brands>
410
+
411
+ <Name>パナソニック</Name>
412
+
413
+ <Path>
414
+
415
+ <Brand>
416
+
417
+ <Id>1</Id>
418
+
419
+ </Brand>
420
+
421
+ <Brand>
422
+
423
+ <Id>1460</Id>
424
+
425
+ </Brand>
426
+
427
+ </Path>
428
+
429
+ </Brands>
430
+
431
+ <JanCode/>
432
+
433
+ <Model/>
434
+
435
+ <IsbnCode/>
436
+
437
+ <Store>
438
+
439
+ <Id>w-yutori</Id>
440
+
441
+ <Name>Web Shop ゆとり Yahoo!店</Name>
442
+
443
+ <SellerType>B</SellerType>
444
+
445
+ <Url>https://store.shopping.yahoo.co.jp/w-yutori/</Url>
446
+
447
+ <Payment>
448
+
449
+ <Method>
450
+
451
+ <Code>1</Code>
452
+
453
+ <Name>クレジットカード</Name>
454
+
455
+ </Method>
456
+
457
+ <Method>
458
+
459
+ <Code>16</Code>
460
+
461
+ <Name>Yahoo!ウォレットに登録しているクレジットカード</Name>
462
+
463
+ </Method>
464
+
465
+ <Method>
466
+
467
+ <Code>4</Code>
468
+
469
+ <Name>商品代引</Name>
470
+
471
+ </Method>
472
+
473
+ <Method>
474
+
475
+ <Code>2</Code>
476
+
477
+ <Name>銀行振込</Name>
478
+
479
+ </Method>
480
+
481
+ <Method>
482
+
483
+ <Code>8</Code>
484
+
485
+ <Name>郵便振替</Name>
486
+
487
+ </Method>
488
+
489
+ <Method>
490
+
491
+ <Code>32</Code>
492
+
493
+ <Name>モバイルSuica</Name>
494
+
495
+ </Method>
496
+
497
+ <Method>
498
+
499
+ <Code>64</Code>
500
+
501
+ </Hit>
504
502
 
505
503
  ```
506
504
 
@@ -510,131 +508,131 @@
510
508
 
511
509
  <Item>
512
510
 
513
- <itemName>
511
+ <itemName>
514
512
 
515
513
  【今月限定/特別大特価】AUEA08077M東芝 業務用エアコン スーパーパワーエコmini天井カセット4方向 3馬力 シングル標準省エネ 三相200V ワイヤードAUEA08077Mが激安
516
514
 
517
515
  </itemName>
518
516
 
519
- <catchcopy>
517
+ <catchcopy>
520
518
 
521
519
  《AUEA08077M》《送料無料&メーカー1年保証付》《カード決済もOK》《みんなのレビュー2,200件突破》《安心の楽天EXPO受賞店》
522
520
 
523
521
  </catchcopy>
524
522
 
525
- <itemCode>setsubi:10158165</itemCode>
523
+ <itemCode>setsubi:10158165</itemCode>
526
-
524
+
527
- <itemPrice>162145</itemPrice>
525
+ <itemPrice>162145</itemPrice>
528
-
526
+
529
- <itemCaption>
527
+ <itemCaption>
530
528
 
531
529
  メーカー希望小売価格はメーカーカタログに基づいて掲載しています※パネル・リモコンを含んだ金額になります※パネルカ...
532
530
 
533
531
  </itemCaption>
534
532
 
535
- <itemUrl>https://item.rakuten.co.jp/setsubi/auea08077m/</itemUrl>
533
+ <itemUrl>https://item.rakuten.co.jp/setsubi/auea08077m/</itemUrl>
536
-
534
+
537
- <shopUrl>https://www.rakuten.co.jp/setsubi/</shopUrl>
535
+ <shopUrl>https://www.rakuten.co.jp/setsubi/</shopUrl>
538
-
536
+
539
- <smallImageUrls>
537
+ <smallImageUrls>
540
-
538
+
541
- <imageUrl>
539
+ <imageUrl>
542
540
 
543
541
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604/auea08077m.jpg?_ex=64x64
544
542
 
545
543
  </imageUrl>
546
544
 
547
- <imageUrl>
545
+ <imageUrl>
548
546
 
549
547
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/roa-ap807h.jpg?_ex=64x64
550
548
 
551
549
  </imageUrl>
552
550
 
553
- <imageUrl>
551
+ <imageUrl>
554
552
 
555
553
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/rbc-ams53.jpg?_ex=64x64
556
554
 
557
555
  </imageUrl>
558
556
 
559
- </smallImageUrls>
557
+ </smallImageUrls>
560
-
558
+
561
- <mediumImageUrls>
559
+ <mediumImageUrls>
562
-
560
+
563
- <imageUrl>
561
+ <imageUrl>
564
562
 
565
563
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604/auea08077m.jpg?_ex=128x128
566
564
 
567
565
  </imageUrl>
568
566
 
569
- <imageUrl>
567
+ <imageUrl>
570
568
 
571
569
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/roa-ap807h.jpg?_ex=128x128
572
570
 
573
571
  </imageUrl>
574
572
 
575
- <imageUrl>
573
+ <imageUrl>
576
574
 
577
575
  https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/rbc-ams53.jpg?_ex=128x128
578
576
 
579
577
  </imageUrl>
580
578
 
581
- </mediumImageUrls>
582
-
583
- <affiliateUrl/>
584
-
585
- <shopAffiliateUrl/>
586
-
587
- <imageFlag>1</imageFlag>
588
-
589
- <availability>1</availability>
590
-
591
- <taxFlag>0</taxFlag>
592
-
593
- <postageFlag>0</postageFlag>
594
-
595
- <creditCardFlag>1</creditCardFlag>
596
-
597
- <shopOfTheYearFlag>0</shopOfTheYearFlag>
598
-
599
- <shipOverseasFlag>0</shipOverseasFlag>
600
-
601
- <shipOverseasArea/>
602
-
603
- <asurakuFlag>0</asurakuFlag>
604
-
605
- <asurakuClosingTime/>
606
-
607
- <asurakuArea/>
608
-
609
- <affiliateRate>2.0</affiliateRate>
610
-
611
- <startTime/>
612
-
613
- <endTime/>
614
-
615
- <reviewCount>22</reviewCount>
616
-
617
- <reviewAverage>4.82</reviewAverage>
618
-
619
- <pointRate>1</pointRate>
620
-
621
- <pointRateStartTime/>
622
-
623
- <pointRateEndTime/>
624
-
625
- <giftFlag>0</giftFlag>
626
-
627
- <shopName>業務用エアコンのセツビコム</shopName>
628
-
629
- <shopCode>setsubi</shopCode>
630
-
631
- <genreId>208369</genreId>
632
-
633
- <tagIds>
634
-
635
- <value>1002881</value>
636
-
637
- </tagIds>
579
+ </mediumImageUrls>
580
+
581
+ <affiliateUrl/>
582
+
583
+ <shopAffiliateUrl/>
584
+
585
+ <imageFlag>1</imageFlag>
586
+
587
+ <availability>1</availability>
588
+
589
+ <taxFlag>0</taxFlag>
590
+
591
+ <postageFlag>0</postageFlag>
592
+
593
+ <creditCardFlag>1</creditCardFlag>
594
+
595
+ <shopOfTheYearFlag>0</shopOfTheYearFlag>
596
+
597
+ <shipOverseasFlag>0</shipOverseasFlag>
598
+
599
+ <shipOverseasArea/>
600
+
601
+ <asurakuFlag>0</asurakuFlag>
602
+
603
+ <asurakuClosingTime/>
604
+
605
+ <asurakuArea/>
606
+
607
+ <affiliateRate>2.0</affiliateRate>
608
+
609
+ <startTime/>
610
+
611
+ <endTime/>
612
+
613
+ <reviewCount>22</reviewCount>
614
+
615
+ <reviewAverage>4.82</reviewAverage>
616
+
617
+ <pointRate>1</pointRate>
618
+
619
+ <pointRateStartTime/>
620
+
621
+ <pointRateEndTime/>
622
+
623
+ <giftFlag>0</giftFlag>
624
+
625
+ <shopName>業務用エアコンのセツビコム</shopName>
626
+
627
+ <shopCode>setsubi</shopCode>
628
+
629
+ <genreId>208369</genreId>
630
+
631
+ <tagIds>
632
+
633
+ <value>1002881</value>
634
+
635
+ </tagIds>
638
636
 
639
637
  </Item>
640
638
 

2

xml追記

2019/06/25 02:17

投稿

beginner_t
beginner_t

スコア716

test CHANGED
File without changes
test CHANGED
@@ -235,3 +235,421 @@
235
235
 
236
236
 
237
237
  よろしくお願い致します。
238
+
239
+
240
+
241
+ 追記2 取得しているxmlを記載
242
+
243
+
244
+
245
+ A_api
246
+
247
+ ```xml
248
+
249
+ <Hit index="1">
250
+
251
+ <Name>パナソニック 空気清浄機脱臭フィルターF-ZDJD30</Name>
252
+
253
+ <Description>
254
+
255
+ 対応機種:F-PDJ30-A/F-PDK30-A/F-PDJ30-C/F-PDL30-A/F-PDK30-C/F-PDM30-A/F-PDL30-C/F-PDJ30-P/F-PDK30-P/F-PDL30-P/F-PDM30-W/F-PDP30-W/F-PDR30-W/ ※メーカー取り寄せ品 キャンセル不可 ご注文日から1〜3営業日で出荷 (メーカー在庫切れ、生産完了の場合もございます。その際は後日納期をメールにてご連絡致します。)
256
+
257
+ </Description>
258
+
259
+ <Headline/>
260
+
261
+ <Url>
262
+
263
+ https://store.shopping.yahoo.co.jp/w-yutori/4942302194260.html
264
+
265
+ </Url>
266
+
267
+ <ReleaseDate/>
268
+
269
+ <Availability>instock</Availability>
270
+
271
+ <Code>w-yutori_4942302194260</Code>
272
+
273
+ <Condition>new</Condition>
274
+
275
+ <PersonId/>
276
+
277
+ <ProductId/>
278
+
279
+ <Image>
280
+
281
+ <Id/>
282
+
283
+ <Small>https://s.yimg.jp/images/sh/noimage/76x76.gif</Small>
284
+
285
+ <Medium>https://s.yimg.jp/images/sh/noimage/146x146.gif</Medium>
286
+
287
+ </Image>
288
+
289
+ <Review>
290
+
291
+ <Rate>0.00</Rate>
292
+
293
+ <Count>0</Count>
294
+
295
+ <Url>
296
+
297
+ https://shopping.yahoo.co.jp/review/item/list?store_id=w-yutori&page_key=4942302194260
298
+
299
+ </Url>
300
+
301
+ </Review>
302
+
303
+ <Affiliate>
304
+
305
+ <Rate>10.0</Rate>
306
+
307
+ </Affiliate>
308
+
309
+ <Price currency="JPY">1640</Price>
310
+
311
+ <PremiumPrice/>
312
+
313
+ <PriceLabel taxIncluded="true">
314
+
315
+ <FixedPrice/>
316
+
317
+ <DefaultPrice>1640</DefaultPrice>
318
+
319
+ <SalePrice/>
320
+
321
+ <PremiumPriceStatus>0</PremiumPriceStatus>
322
+
323
+ <PremiumPrice>1640</PremiumPrice>
324
+
325
+ <PremiumDiscountType/>
326
+
327
+ <PremiumDiscountRate/>
328
+
329
+ <BaseFixedPrice/>
330
+
331
+ <BaseDefaultPrice>1519</BaseDefaultPrice>
332
+
333
+ <BaseSalePrice/>
334
+
335
+ <BasePremiumPrice>1519</BasePremiumPrice>
336
+
337
+ <PeriodStart>2019-06-24T10:00:00+09:00</PeriodStart>
338
+
339
+ <PeriodEnd>2019-06-26T02:00:00+09:00</PeriodEnd>
340
+
341
+ </PriceLabel>
342
+
343
+ <Point>
344
+
345
+ <Amount>16</Amount>
346
+
347
+ <Times>1</Times>
348
+
349
+ <PremiumAmount>16</PremiumAmount>
350
+
351
+ <PremiumTimes>1</PremiumTimes>
352
+
353
+ </Point>
354
+
355
+ <Shipping>
356
+
357
+ <Code>1</Code>
358
+
359
+ <Name>設定無し</Name>
360
+
361
+ </Shipping>
362
+
363
+ <Category>
364
+
365
+ <Current>
366
+
367
+ <Id>26321</Id>
368
+
369
+ <Name>空気清浄機交換フィルター</Name>
370
+
371
+ </Current>
372
+
373
+ </Category>
374
+
375
+ <CategoryIdPath>
376
+
377
+ <Category>
378
+
379
+ <Id>1</Id>
380
+
381
+ </Category>
382
+
383
+ <Category>
384
+
385
+ <Id>2505</Id>
386
+
387
+ </Category>
388
+
389
+ <Category>
390
+
391
+ <Id>4740</Id>
392
+
393
+ </Category>
394
+
395
+ <Category>
396
+
397
+ <Id>26318</Id>
398
+
399
+ </Category>
400
+
401
+ <Category>
402
+
403
+ <Id>26321</Id>
404
+
405
+ </Category>
406
+
407
+ </CategoryIdPath>
408
+
409
+ <Brands>
410
+
411
+ <Name>パナソニック</Name>
412
+
413
+ <Path>
414
+
415
+ <Brand>
416
+
417
+ <Id>1</Id>
418
+
419
+ </Brand>
420
+
421
+ <Brand>
422
+
423
+ <Id>1460</Id>
424
+
425
+ </Brand>
426
+
427
+ </Path>
428
+
429
+ </Brands>
430
+
431
+ <JanCode/>
432
+
433
+ <Model/>
434
+
435
+ <IsbnCode/>
436
+
437
+ <Store>
438
+
439
+ <Id>w-yutori</Id>
440
+
441
+ <Name>Web Shop ゆとり Yahoo!店</Name>
442
+
443
+ <SellerType>B</SellerType>
444
+
445
+ <Url>https://store.shopping.yahoo.co.jp/w-yutori/</Url>
446
+
447
+ <Payment>
448
+
449
+ <Method>
450
+
451
+ <Code>1</Code>
452
+
453
+ <Name>クレジットカード</Name>
454
+
455
+ </Method>
456
+
457
+ <Method>
458
+
459
+ <Code>16</Code>
460
+
461
+ <Name>Yahoo!ウォレットに登録しているクレジットカード</Name>
462
+
463
+ </Method>
464
+
465
+ <Method>
466
+
467
+ <Code>4</Code>
468
+
469
+ <Name>商品代引</Name>
470
+
471
+ </Method>
472
+
473
+ <Method>
474
+
475
+ <Code>2</Code>
476
+
477
+ <Name>銀行振込</Name>
478
+
479
+ </Method>
480
+
481
+ <Method>
482
+
483
+ <Code>8</Code>
484
+
485
+ <Name>郵便振替</Name>
486
+
487
+ </Method>
488
+
489
+ <Method>
490
+
491
+ <Code>32</Code>
492
+
493
+ <Name>モバイルSuica</Name>
494
+
495
+ </Method>
496
+
497
+ <Method>
498
+
499
+ <Code>64</Code>
500
+
501
+
502
+
503
+ </Hit>
504
+
505
+ ```
506
+
507
+ B_api
508
+
509
+ ```xml
510
+
511
+ <Item>
512
+
513
+ <itemName>
514
+
515
+ 【今月限定/特別大特価】AUEA08077M東芝 業務用エアコン スーパーパワーエコmini天井カセット4方向 3馬力 シングル標準省エネ 三相200V ワイヤードAUEA08077Mが激安
516
+
517
+ </itemName>
518
+
519
+ <catchcopy>
520
+
521
+ 《AUEA08077M》《送料無料&メーカー1年保証付》《カード決済もOK》《みんなのレビュー2,200件突破》《安心の楽天EXPO受賞店》
522
+
523
+ </catchcopy>
524
+
525
+ <itemCode>setsubi:10158165</itemCode>
526
+
527
+ <itemPrice>162145</itemPrice>
528
+
529
+ <itemCaption>
530
+
531
+ メーカー希望小売価格はメーカーカタログに基づいて掲載しています※パネル・リモコンを含んだ金額になります※パネルカ...
532
+
533
+ </itemCaption>
534
+
535
+ <itemUrl>https://item.rakuten.co.jp/setsubi/auea08077m/</itemUrl>
536
+
537
+ <shopUrl>https://www.rakuten.co.jp/setsubi/</shopUrl>
538
+
539
+ <smallImageUrls>
540
+
541
+ <imageUrl>
542
+
543
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604/auea08077m.jpg?_ex=64x64
544
+
545
+ </imageUrl>
546
+
547
+ <imageUrl>
548
+
549
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/roa-ap807h.jpg?_ex=64x64
550
+
551
+ </imageUrl>
552
+
553
+ <imageUrl>
554
+
555
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/rbc-ams53.jpg?_ex=64x64
556
+
557
+ </imageUrl>
558
+
559
+ </smallImageUrls>
560
+
561
+ <mediumImageUrls>
562
+
563
+ <imageUrl>
564
+
565
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604/auea08077m.jpg?_ex=128x128
566
+
567
+ </imageUrl>
568
+
569
+ <imageUrl>
570
+
571
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/roa-ap807h.jpg?_ex=128x128
572
+
573
+ </imageUrl>
574
+
575
+ <imageUrl>
576
+
577
+ https://thumbnail.image.rakuten.co.jp/@0_mall/setsubi/cabinet/ind_aircon/toshiba/201604_2/rbc-ams53.jpg?_ex=128x128
578
+
579
+ </imageUrl>
580
+
581
+ </mediumImageUrls>
582
+
583
+ <affiliateUrl/>
584
+
585
+ <shopAffiliateUrl/>
586
+
587
+ <imageFlag>1</imageFlag>
588
+
589
+ <availability>1</availability>
590
+
591
+ <taxFlag>0</taxFlag>
592
+
593
+ <postageFlag>0</postageFlag>
594
+
595
+ <creditCardFlag>1</creditCardFlag>
596
+
597
+ <shopOfTheYearFlag>0</shopOfTheYearFlag>
598
+
599
+ <shipOverseasFlag>0</shipOverseasFlag>
600
+
601
+ <shipOverseasArea/>
602
+
603
+ <asurakuFlag>0</asurakuFlag>
604
+
605
+ <asurakuClosingTime/>
606
+
607
+ <asurakuArea/>
608
+
609
+ <affiliateRate>2.0</affiliateRate>
610
+
611
+ <startTime/>
612
+
613
+ <endTime/>
614
+
615
+ <reviewCount>22</reviewCount>
616
+
617
+ <reviewAverage>4.82</reviewAverage>
618
+
619
+ <pointRate>1</pointRate>
620
+
621
+ <pointRateStartTime/>
622
+
623
+ <pointRateEndTime/>
624
+
625
+ <giftFlag>0</giftFlag>
626
+
627
+ <shopName>業務用エアコンのセツビコム</shopName>
628
+
629
+ <shopCode>setsubi</shopCode>
630
+
631
+ <genreId>208369</genreId>
632
+
633
+ <tagIds>
634
+
635
+ <value>1002881</value>
636
+
637
+ </tagIds>
638
+
639
+ </Item>
640
+
641
+ ```
642
+
643
+
644
+
645
+ xmlは上記ソースで作成したURLから所得しているxmlなので、
646
+
647
+ 実際の店舗情報が記載されています。不都合があった場合削除いたします。
648
+
649
+ また、今回はやってほしいことだけを記載した丸投げの質問ではなく、
650
+
651
+ ヒントや考え方のアドバイスが欲しいのであって、答えをそのまま作ってほしいわけではありません。
652
+
653
+ ソースやデータを記載しなかったのは、取得データやソースを公開するにあたり、api元の権利関係を確認していたからです。
654
+
655
+ 質問の仕方が不適切で申し訳ないです。

1

ソースコードを追記

2019/06/25 02:04

投稿

beginner_t
beginner_t

スコア716

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,205 @@
33
33
  何か考え方のヒントを頂けないでしょうか?
34
34
 
35
35
  よろしくお願いいたします。
36
+
37
+
38
+
39
+ ソースを追記
40
+
41
+
42
+
43
+ ```PHP
44
+
45
+ <?php
46
+
47
+ /** @mainpage
48
+
49
+ * 商品検索フォームを表示
50
+
51
+ */
52
+
53
+
54
+
55
+ /**
56
+
57
+ * @file
58
+
59
+ * @brief 商品検索フォームを表示
60
+
61
+ *
62
+
63
+ * 商品検索フォームを表示し、
64
+
65
+ * フォームから入力された値を条件に、検索APIを利用して、検索した結果をhtmlに埋め込んで表示します。
66
+
67
+ * 検索結果に対して、カテゴリーによる絞り込みと、並び順の変更ができます。
68
+
69
+ *
70
+
71
+ * PHP version 5
72
+
73
+ */
74
+
75
+
76
+
77
+ require_once("../common/common.php");//共通ファイル読み込み(使用する前に、appidを指定してください。)
78
+
79
+
80
+
81
+ $hits = array();
82
+
83
+ $query = !empty($_GET["query"]) ? $_GET["query"] : "";
84
+
85
+ $sort = !empty($_GET["sort"]) && array_key_exists($_GET["sort"], $sortOrder) ? $_GET["sort"] : "-score";
86
+
87
+ $category_id = ctype_digit($_GET["category_id"]) && array_key_exists($_GET["category_id"], $categories) ? $_GET["category_id"] : 1;
88
+
89
+
90
+
91
+ if ($query != "") {
92
+
93
+ $query4url = rawurlencode($query);
94
+
95
+ $sort4url = rawurlencode($sort);
96
+
97
+ $url = "http://shopping.yahooapis.jp/ShoppingWebService/V1/itemSearch?appid=$appid&query=$query4url&category_id=$category_id&sort=$sort4url";
98
+
99
+ $xml = simplexml_load_file($url);
100
+
101
+ if ($xml["totalResultsReturned"] != 0) {//検索件数が0件でない場合,変数$hitsに検索結果を格納します。
102
+
103
+ $hits = $xml->Result->Hit;
104
+
105
+ }
106
+
107
+ }
108
+
109
+ ?>
110
+
111
+ <html>
112
+
113
+ <head>
114
+
115
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
116
+
117
+ <title>ショッピングデモサイト - 商品を検索する</title>
118
+
119
+ <link rel="stylesheet" type="text/css" href="../css/prototype.css"/>
120
+
121
+ </head>
122
+
123
+ <body>
124
+
125
+ <h1><a href="./ItemSearchForm.php">ショッピングデモサイト - 商品を検索する</a></h1>
126
+
127
+ <form action="./ItemSearchForm.php" class="Search">
128
+
129
+ 表示順序:
130
+
131
+ <select name="sort">
132
+
133
+ <?php foreach ($sortOrder as $key => $value) { ?>
134
+
135
+ <option value="<?php echo h($key); ?>" <?php if($sort == $key) echo "selected=\"selected\""; ?>><?php echo h($value);?></option>
136
+
137
+ <?php } ?>
138
+
139
+ </select>
140
+
141
+ キーワード検索:
142
+
143
+ <select name="category_id">
144
+
145
+ <?php foreach ($categories as $id => $name) { ?>
146
+
147
+ <option value="<?php echo h($id); ?>" <?php if($category_id == $id) echo "selected=\"selected\""; ?>><?php echo h($name);?></option>
148
+
149
+ <?php } ?>
150
+
151
+ </select>
152
+
153
+ <input type="text" name="query" value="<?php echo h($query); ?>"/>
154
+
155
+ <input type="submit" value="Yahooショッピングで検索"/>
156
+
157
+ </form>
158
+
159
+ <?php foreach ($hits as $hit) { ?>
160
+
161
+
162
+
163
+ <div class="Item">
164
+
165
+ <h2><a href="<?php echo h($hit->Url); ?>"><?php echo h($hit->Name); ?></a></h2>
166
+
167
+ <p><a href="<?php echo h($hit->Url); ?>"><img src="<?php echo h($hit->Image->Medium); ?>" /></a><?php echo h($hit->Description); ?></p>
168
+
169
+ </div>
170
+
171
+ <?php } ?>
172
+
173
+
174
+
175
+ <?php
176
+
177
+ $r_appid = "省略";
178
+
179
+ $r_sort = "+itemPrice";
180
+
181
+ $r_sort4url = rawurlencode($r_sort);
182
+
183
+ $r_url = "https://app.rakuten.co.jp/services/api/IchibaItem/Search/20170706?applicationId=$r_appid&format=xml&keyword=$query&sort=$r_sort4url";
184
+
185
+
186
+
187
+ $r_xml = simplexml_load_file($r_url);
188
+
189
+ $r_items = $r_xml->Items->Item;
190
+
191
+ ?>
192
+
193
+ <?php } ?>
194
+
195
+ <?php } ?>
196
+
197
+ <?php foreach ($r_items as $r_item) { ?>
198
+
199
+ <div class="Item">
200
+
201
+ <h2><a href="<?php echo h($r_item -> itemUrl); ?>"><?php echo h($r_item -> shopName); ?></a></h2>
202
+
203
+ <p><a href="<?php echo h($r_item -> itemUrl); ?>"><img src="<?php echo h($r_item -> mediumImageUrls -> imageUrl); ?>" /></a><?php echo h($r_item -> itemName); ?><br><?php echo h($r_item -> itemCode); ?><br><?php echo h($r_item->shopCode); ?><br><?php echo h($r_item -> shopName); ?><br><br>通常価格:<?php echo h($r_item -> itemPrice); ?>円</p>
204
+
205
+ </div>
206
+
207
+
208
+
209
+ <?php } ?>
210
+
211
+ <!-- Begin Yahoo! JAPAN Web Services Attribution Snippet -->
212
+
213
+ <a href="http://developer.yahoo.co.jp/about">
214
+
215
+ <img src="http://i.yimg.jp/images/yjdn/yjdn_attbtn2_105_17.gif" width="105" height="17" title="Webサービス by Yahoo! JAPAN" alt="Webサービス by Yahoo! JAPAN" border="0" style="margin:15px 15px 15px 15px"></a>
216
+
217
+ <!-- End Yahoo! JAPAN Web Services Attribution Snippet -->
218
+
219
+ </body>
220
+
221
+ </html>
222
+
223
+ ```
224
+
225
+
226
+
227
+
228
+
229
+ 実際のコードとは異なりますが、おおむねこのような形でxmlを取得しております。
230
+
231
+ 取得したそれぞれのapiを再度合わせてソートをかけれるようにしたいのですが、
232
+
233
+ どのように共通化すればよいでしょうか?
234
+
235
+
236
+
237
+ よろしくお願い致します。