doudou5023 2013-06-28 05:43
浏览 30

如何使用PHP从我的网站提取/获取和显示数据(从其他电子商务网站)

I have seen many of the eCommerce portals which are showing the list of products from another bigger eCommerce websites from across the world.

The fetching is not a big problem i think, by using file_get_contents or CURL in php, But the question is,

Do they provide some api to allow others to fetch their data/product info?

Do we need to get their permissions to fetch data from their sites.

Are there some elegant and specific method/way to fetch data to show on our site (instead of CURL & file_get_contents)?

  • 写回答

3条回答 默认 最新

  • dongzong3053 2013-06-28 05:54
    关注

    Some websites provide their API to access data. Some cost money, Some may be free. In any case , yes, you need permission.

    But you can always scrape their sites without permission.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?