这个现价我没有找到获取方法。就是49.00这个数。而不是128那个原价,原价很好获得。
求可以用的php代码。
功能:给出商品链接,获取到商品现价。
有一个从缓存取的方法(cache)就不要说了,那个方法我可以取到。
回复讨论(解决方案)
这个需要模拟来源。然后访问
页面中的
sibUrl : '//detailskip.taobao.com/json/sib.htm?itemId=521455088477&sellerId=131286224&prior=1&p=1&rcid=50006843&sts=475598864,1170940491022204996,216524763307212928,1166502672237462531&price=98000&ju=true&vd=1&skil=false&st=1&pf=1&al=false&ap=0&ss=0&free=1&defaultCityId=110100&u=1&ct=1&ns=1',
就可以了。
type: "秋冬新势力" ,
price:"238.00", limitTime: "",
channelkey: "",
add: "",
gift: "",
cart: "true",
这个需要模拟来源。然后访问
页面中的
sibUrl : '//detailskip.taobao.com/json/sib.htm?itemId=521455088477&sellerId=131286224&prior=1&p=1&rcid=50006843&sts=475598864,1170940491022204996,216524763307212928,1166502672237462531&price=98000&ju=true&vd=1&skil=false&st=1&pf=1&al=false&ap=0&ss=0&free=1&defaultCityId=110100&u=1&ct=1&ns=1',
就可以了。
type: "秋冬新势力" ,
price:"238.00", limitTime: "",
channelkey: "",
add: "",
gift: "",
cart: "true",
请问如果是天猫商品
如
https://detail.tmall.com/item.htm?spm=a3149.7799748.2574737280.6.7Uoknj&id=39609048064&acm=lb-zebra-26510-360367.1003.4.482085&scm=1003.4.lb-zebra-26510-360367.ITEM_39609048064_482085
去访问哪个网址呢?
这逗比楼主又来了。
https://detail.tmall.com/item.htm?id=商品id 自行爬、
第二种:
http://hws.m.taobao.com/cache/wdetail/5.0/?id=商品ID
返回json。
你知道这个cache是哪里的吗?是手机淘宝用的.为了严谨才跟你说有缓存的。事实上所有淘宝的商品数据都会缓存10-30分钟左右.
没看到 49 是过了一会才显示过来。 用到了JS,
你应该想到就是用了ajax异步请求啊。
你要的49在如下链接里面
URL:
https://detailskip.taobao.com/json/sib.htm?itemId=35300773790&sellerId=741012020&prior=1&p=1&rcid=50050359&sts=72945664,1170937191606517832,216525184214007936,13519607902111235&price=12800&vd=1&skil=false&st=1&pf=1&al=false&ap=1&ss=0&free=0&defaultCityId=110100&u=1&ct=1&sd=0
URL2
https://tui.taobao.com/recommend?_ksTS=1446710400616_770&callback=jsonp771&appid=1837&itemid=35300773790&count=5&style=h&types=view,buy,same
请教:
http://bbs.csdn.net/topics/391854288
谢谢

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Laravel's service container and service providers are fundamental to its architecture. This article explores service containers, details service provider creation, registration, and demonstrates practical usage with examples. We'll begin with an ove

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version
Useful JavaScript development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function