質問編集履歴
2
apiの内容を修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -238,151 +238,195 @@
|
|
238
238
|
|
239
239
|
```api
|
240
240
|
|
241
|
+
/* */data({
|
242
|
+
|
241
|
-
|
243
|
+
"ResultSet":{
|
244
|
+
|
242
|
-
|
245
|
+
"totalResultsAvailable":"100",
|
246
|
+
|
247
|
+
"firstResultPosition":"1",
|
248
|
+
|
249
|
+
"totalResultsReturned":20,
|
250
|
+
|
243
|
-
"0":{
|
251
|
+
"0":{
|
244
|
-
|
252
|
+
|
245
|
-
"Result":{
|
253
|
+
"Result":{
|
246
|
-
|
254
|
+
|
247
|
-
"
|
255
|
+
"RankingInfo":{
|
256
|
+
|
248
|
-
|
257
|
+
"LastModified":"2019-10-18",
|
258
|
+
|
249
|
-
"
|
259
|
+
"StartDate":"2019-10-17",
|
250
|
-
|
260
|
+
|
251
|
-
"
|
261
|
+
"EndDate":"2019-10-17",
|
252
|
-
|
262
|
+
|
253
|
-
"
|
263
|
+
"CategoryId":"4744",
|
254
|
-
|
264
|
+
|
255
|
-
"
|
265
|
+
"Gender":"all",
|
266
|
+
|
256
|
-
|
267
|
+
"Generation":"all",
|
268
|
+
|
257
|
-
"
|
269
|
+
"Period":"daily"
|
258
|
-
|
259
|
-
"Small":"https://item-shopping.c.yimg.jp/i/c/organic_5040-500007",
|
260
|
-
|
261
|
-
"Medium":"https://item-shopping.c.yimg.jp/i/g/organic_5040-500007"
|
262
270
|
|
263
271
|
},
|
264
272
|
|
265
|
-
"
|
266
|
-
|
267
|
-
"
|
273
|
+
"0":{
|
274
|
+
|
275
|
+
"Name":"\u8a33\u3042\u308a \u5272\u308c\u30c1\u30e7\u30b3 \u6700\u5927300g \u9078\u3079\u308b14\u7a2e\u985e \u30c1\u30e7\u30b3\u30ec\u30fc\u30c8 \u30c1\u30e5\u30d9\u30fb\u30c9\u30fb\u30b7\u30e7\u30b3\u30e9\u306e\u304a\u8a66\u3057\u5272\u308c\u30c1\u30e7\u30b3 \u9001\u6599\u7121\u6599 \u30b0\u30eb\u30e1 \u30dd\u30a4\u30f3\u30c8\u6d88\u5316",
|
276
|
+
|
277
|
+
"Code":"kamachu-shop_latter",
|
278
|
+
|
279
|
+
"Url":"https://store.shopping.yahoo.co.jp/kamachu-shop/latter.html",
|
280
|
+
|
281
|
+
"Image":{
|
282
|
+
|
283
|
+
"Id":"kamachu-shop_latter",
|
284
|
+
|
285
|
+
"Small":"https://item-shopping.c.yimg.jp/i/c/kamachu-shop_latter",
|
286
|
+
|
287
|
+
"Medium":"https://item-shopping.c.yimg.jp/i/g/kamachu-shop_latter"
|
288
|
+
|
289
|
+
},
|
290
|
+
|
291
|
+
"Review":{
|
292
|
+
|
293
|
+
"Rate":"4.16",
|
294
|
+
|
295
|
+
"Count":"8635",
|
296
|
+
|
297
|
+
"Url":"https://shopping.yahoo.co.jp/review/item/list?store_id=kamachu-shop&page_key=latter"
|
298
|
+
|
299
|
+
},
|
300
|
+
|
301
|
+
"Store":{
|
302
|
+
|
303
|
+
"Id":"kamachu-shop",
|
304
|
+
|
305
|
+
"Name":"\u84b2\u5c4b\u5fe0\u5175\u885b\u5546\u5e97",
|
306
|
+
|
307
|
+
"Url":"https://store.shopping.yahoo.co.jp/kamachu-shop/"
|
308
|
+
|
309
|
+
},
|
310
|
+
|
311
|
+
"_attributes":{
|
312
|
+
|
313
|
+
"rank":"1",
|
314
|
+
|
315
|
+
"vector":"up",
|
316
|
+
|
317
|
+
"type":"item"
|
318
|
+
|
319
|
+
}
|
268
320
|
|
269
321
|
},
|
270
322
|
|
271
|
-
"
|
323
|
+
"1":{
|
272
|
-
|
324
|
+
|
273
|
-
|
325
|
+
~
|
274
|
-
|
275
|
-
"Name":"SUPER CAKE produced by OCS",
|
276
|
-
|
277
|
-
"Url":"https://store.shopping.yahoo.co.jp/organic/"
|
278
326
|
|
279
327
|
},
|
280
328
|
|
329
|
+
"_container":"RankingData",
|
330
|
+
|
331
|
+
"Categories":{
|
332
|
+
|
333
|
+
"Current":{
|
334
|
+
|
335
|
+
"Id":"4744",
|
336
|
+
|
337
|
+
"ParentId":"2498",
|
338
|
+
|
339
|
+
"Url":"https://shopping.yahoo.co.jp/category/4744/recommend",
|
340
|
+
|
341
|
+
"Title":{
|
342
|
+
|
343
|
+
"Short":"\u30b9\u30a4\u30fc\u30c4\u3001\u6d0b\u83d3\u5b50",
|
344
|
+
|
345
|
+
"Medium":"\u30b9\u30a4\u30fc\u30c4\u3001\u6d0b\u83d3\u5b50",
|
346
|
+
|
347
|
+
"Long":"\u98df\u54c1 > \u30b9\u30a4\u30fc\u30c4\u3001\u6d0b\u83d3\u5b50"
|
348
|
+
|
349
|
+
},
|
350
|
+
|
351
|
+
"Path":{
|
352
|
+
|
353
|
+
"0":{
|
354
|
+
|
281
|
-
"_attributes":{
|
355
|
+
"_attributes":{
|
356
|
+
|
282
|
-
|
357
|
+
"depth":1
|
358
|
+
|
359
|
+
},
|
360
|
+
|
283
|
-
"
|
361
|
+
"Id":"1",
|
284
|
-
|
362
|
+
|
285
|
-
"
|
363
|
+
"ParentId":"0",
|
364
|
+
|
286
|
-
|
365
|
+
"Title":{
|
366
|
+
|
367
|
+
"Name":"Shopping"
|
368
|
+
|
369
|
+
}
|
370
|
+
|
371
|
+
},
|
372
|
+
|
373
|
+
"1":{
|
374
|
+
|
375
|
+
~
|
376
|
+
|
377
|
+
},
|
378
|
+
|
379
|
+
"_container":"Category"
|
380
|
+
|
381
|
+
}
|
382
|
+
|
383
|
+
},
|
384
|
+
|
385
|
+
"Children":{
|
386
|
+
|
387
|
+
"0":{
|
388
|
+
|
389
|
+
"_attributes":{
|
390
|
+
|
391
|
+
"sortOrder":"10"
|
392
|
+
|
393
|
+
},
|
394
|
+
|
287
|
-
"
|
395
|
+
"Id":"14628",
|
396
|
+
|
397
|
+
"Url":"https://shopping.yahoo.co.jp/category/14628/recommend",
|
398
|
+
|
399
|
+
"Title":{
|
400
|
+
|
401
|
+
"Short":"\u30c1\u30e7\u30b3\u30ec\u30fc\u30c8",
|
402
|
+
|
403
|
+
"Medium":"\u30c1\u30e7\u30b3\u30ec\u30fc\u30c8",
|
404
|
+
|
405
|
+
"Long":"\u98df\u54c1 > \u30b9\u30a4\u30fc\u30c4\u3001\u6d0b\u83d3\u5b50 > \u30c1\u30e7\u30b3\u30ec\u30fc\u30c8"
|
406
|
+
|
407
|
+
}
|
408
|
+
|
409
|
+
},
|
410
|
+
|
411
|
+
"1":{
|
412
|
+
|
413
|
+
~
|
414
|
+
|
415
|
+
},
|
416
|
+
|
417
|
+
"_container":"Child"
|
418
|
+
|
419
|
+
}
|
288
420
|
|
289
421
|
}
|
290
422
|
|
291
|
-
},
|
292
|
-
|
293
|
-
"1":{
|
294
|
-
|
295
|
-
~
|
296
|
-
|
297
|
-
},
|
298
|
-
|
299
|
-
"RankingInfo":{
|
300
|
-
|
301
|
-
"LastModified":"2019-10-17",
|
302
|
-
|
303
|
-
"StartDate":"2019-10-16",
|
304
|
-
|
305
|
-
"EndDate":"2019-10-16",
|
306
|
-
|
307
|
-
"CategoryId":"4744",
|
308
|
-
|
309
|
-
"Gender":"all",
|
310
|
-
|
311
|
-
"Generation":"all",
|
312
|
-
|
313
|
-
"Period":"daily"
|
314
|
-
|
315
|
-
},
|
316
|
-
|
317
|
-
"_container":"RankingData",
|
318
|
-
|
319
|
-
"Categories":{
|
320
|
-
|
321
|
-
"Current":{
|
322
|
-
|
323
|
-
"Id":"4744",
|
324
|
-
|
325
|
-
"ParentId":"2498",
|
326
|
-
|
327
|
-
"Url":"https://shopping.yahoo.co.jp/category/4744/recommend",
|
328
|
-
|
329
|
-
"Title":{
|
330
|
-
|
331
|
-
"Short":"スイーツ、洋菓子",
|
332
|
-
|
333
|
-
"Medium":"スイーツ、洋菓子",
|
334
|
-
|
335
|
-
"Long":"食品 > スイーツ、洋菓子"
|
336
|
-
|
337
|
-
},
|
338
|
-
|
339
|
-
"Path":{
|
340
|
-
|
341
|
-
"0":{
|
342
|
-
|
343
|
-
"_attributes":{
|
344
|
-
|
345
|
-
"depth":1
|
346
|
-
|
347
|
-
},
|
348
|
-
|
349
|
-
"Id":"1",
|
350
|
-
|
351
|
-
"ParentId":"0",
|
352
|
-
|
353
|
-
"Title":{
|
354
|
-
|
355
|
-
"Name":"Shopping"
|
356
|
-
|
357
|
-
}
|
358
|
-
|
359
|
-
},
|
360
|
-
|
361
|
-
"1":{
|
362
|
-
|
363
|
-
~
|
364
|
-
|
365
|
-
},
|
366
|
-
|
367
|
-
"_container":"Child"
|
368
|
-
|
369
|
-
}
|
370
|
-
|
371
|
-
}
|
372
|
-
|
373
423
|
}
|
374
424
|
|
375
|
-
}
|
425
|
+
}
|
376
|
-
|
377
|
-
"totalResultsAvailable":"100",
|
378
|
-
|
379
|
-
"firstResultPosition":"1",
|
380
|
-
|
381
|
-
"totalResultsReturned":20
|
382
426
|
|
383
427
|
}
|
384
428
|
|
385
|
-
}
|
429
|
+
});
|
386
430
|
|
387
431
|
```
|
388
432
|
|
1
*文章にJSONPとJSONが混ざっていたため説明文を修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
独学の初学者です。
|
6
6
|
|
7
|
-
yahooショッピングのカテゴリランキングAPIからJSONの値を取得し、
|
7
|
+
yahooショッピングのカテゴリランキングAPIからJSONPの値を取得し、
|
8
8
|
|
9
9
|
HTMLへの表示、及びcsvへの出力をしたいと考えています。
|
10
10
|
|
@@ -450,7 +450,7 @@
|
|
450
450
|
|
451
451
|
|
452
452
|
|
453
|
-
CORSエラーが出るためJSONPで取得したのがまずかったのかと思い、
|
453
|
+
JSONで取得しようとしたところCORSエラーが出るためJSONPで取得したのがまずかったのかと思い、
|
454
454
|
|
455
455
|
JSON.stringify()やJSON.parse()などで対応してみましたが効果はありませんでした。
|
456
456
|
|