<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 回复： 这个网站的数据怎样用脚本分析地址怎样获取并下载？ in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461213#M70625</link>
    <description>&lt;P&gt;It can download with VBA&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sub test()
    Dim userAgent, params, url, json, res, x, y, arr(20001, 1 To 10)
pp={"query": "{searchByIDs(price:{from:1000, to:5000000} shapeID:[7]  carat:{from:0.05, to:30}  page:{count:100, size:1, number:1} depth:{from:46, to:78} tableSize:{from:52, to:80} color:{from: 1 to: 13} cut:{from: 0 to: 4} clarity:{from: 1 to: 9}  isLabDiamond:false shippingDays:999 ) {total   hits   pageNumber   numberOfPages  items { categories  productID  sku  productType  generalType  isExpressShipping  galleryUrl  title  description  itemID  sku  shippingDate  shippingDates{  shippingDate {    date    byValentines    byNewYears    byXmas    isFastShipping  } invShippingDate {    date    byValentines    byNewYears    byXmas    isFastShipping  }}  isFirmShipping  price  salePrice  originalPrice  url  metaTitle  metaDescription  targetSite  status {    id    name  }   stone {    simpleColor    species    variety    treatment    ratio    isTrueHearts    isGemstonePair    fancyColorOvertone    measurements    measureLength    measureWidth    isLabDiamond    isArgyle    carat    shape { id name }    color { id name isFancy}    cut { id name}    clarity { id name}    lab { id name}    flour { id name fullName }    symmetry { id name fullName } polish { id name fullName }  colorIntensity { id name } depth tableSize}}}}"}

    url = "https://product-service.r2net.com/diamond/v/2/"
    With CreateObject("WinHttp.WinHttpRequest.5.1")
        .Open "Post", url, False
        .SetRequestHeader "content-type", "application/json"
        .Send pp
        Set json = JsonConverter.ParseJson(.Responsetext)
        Set res = json("data")("searchByIDs")("items")
            arr(y, 1) = "sku"
            arr(y, 2) = "price"
            arr(y, 3) = "salePrice"
            arr(y, 4) = "originalPrice"
            arr(y, 5) = "title"
        For Each x In res
            y = y + 1
            arr(y, 1) = x(1)("sku")
            arr(y, 2) = x(1)("price")
            arr(y, 3) = x(1)("salePrice")
            arr(y, 4) = x(1)("originalPrice")
            arr(y, 5) = x(1)("title")
        Next
    End With
    Sheet2.Range("A1").Resize(20001, 10) = arr
End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-02-16_145305.png" style="width: 711px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40035i9E7DED605E347C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-02-16_145305.png" alt="2022-02-16_145305.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 06:53:34 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2022-02-16T06:53:34Z</dc:date>
    <item>
      <title>这个网站的数据怎样用脚本分析地址怎样获取并下载？</title>
      <link>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461200#M70623</link>
      <description>&lt;P&gt;大家好!&lt;/P&gt;&lt;P&gt;这个网站是&lt;SPAN&gt;异步加载数据的&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;怎样用脚本分析地址怎样获取并下载？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;谢谢！&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:10:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461200#M70623</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T18:10:48Z</dc:date>
    </item>
    <item>
      <title>回复： 这个网站的数据怎样用脚本分析地址怎样获取并下载？</title>
      <link>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461209#M70624</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.jamesallen.com/loose-diamonds/all-diamonds/?sideView=true&amp;amp;Color=M,L,K,J,I,H,G,F,E,D&amp;amp;Cut=Good,Very+Good,Ideal,TrueHearts&amp;amp;Shape=all-diamonds&amp;amp;Clarity=I1,SI2,SI1,VS2,VS1,VVS2,VVS1,IF,FL&amp;amp;CaratFrom=0.05&amp;amp;resultsView=List" target="_self"&gt;https://www.jamesallen.com/loose-diamonds/all-diamonds/?sideView=true&amp;amp;Color=M,L,K,J,I,H,G,F,E,D&amp;amp;Cut=Good,Very+Good,Ideal,TrueHearts&amp;amp;Shape=all-diamonds&amp;amp;Clarity=I1,SI2,SI1,VS2,VS1,VVS2,VVS1,IF,FL&amp;amp;CaratFrom=0.05&amp;amp;resultsView=List&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This post'body&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"query":"{\n searchByIDs(price:{from:200, to:5000000} \n carat:{from:0.05, to:30} \n page:{count:5, size:23, number:16}depth:{from:46, to:78}tableSize:{from:52, to:80}color:{from: 1 to: 13} cut:{from: 0 to: 4} clarity:{from: 1 to: 9} shippingDays:999 ) { \n total\n hits\n pageNumber\n numberOfPages\n items {\n \n categories\n productID\n sku\n productType\n generalType\n isExpressShipping\n galleryUrl\n title\n description\n itemID\n sku\n shippingDate\n shippingDates{\n shippingDate {\n date\n byValentines\n byNewYears\n byXmas\n isFastShipping\n } invShippingDate {\n date\n byValentines\n byNewYears\n byXmas\n isFastShipping\n }}\n isFirmShipping\n price\n salePrice\n originalPrice\n url\n metaTitle\n metaDescription\n targetSite\n status {\n id\n name\n }\n media {\n thumb\n hearts\n arrows\n gallery\n gallerySet\n galleryDisplayType\n stageDisplayType\n segomaPhotoID\n tab\n stage\n stageSet\n supperZoom\n supperZoomSet\n sideView\n cert\n cart\n }\n stone {\n simpleColor\n species\n variety\n treatment\n ratio\n isTrueHearts\n isGemstonePair\n fancyColorOvertone\n measurements\n measureLength\n measureWidth\n isLabDiamond\n isArgyle\n carat\n shape {\n id\n name\n }\n color {\n id\n name\n isFancy\n }\n cut {\n id\n name\n }\n clarity {\n id\n name\n }\n lab {\n id\n name\n }\n flour {\n id\n name\n fullName\n }\n symmetry {\n id\n name\n fullName\n }\n polish {\n id\n name\n fullName\n }\n colorIntensity {\n id\n name\n }\n depth\n tableSize\n }\n \n }\n }\n }"}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:49:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461209#M70624</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-02-16T06:49:59Z</dc:date>
    </item>
    <item>
      <title>回复： 这个网站的数据怎样用脚本分析地址怎样获取并下载？</title>
      <link>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461213#M70625</link>
      <description>&lt;P&gt;It can download with VBA&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sub test()
    Dim userAgent, params, url, json, res, x, y, arr(20001, 1 To 10)
pp={"query": "{searchByIDs(price:{from:1000, to:5000000} shapeID:[7]  carat:{from:0.05, to:30}  page:{count:100, size:1, number:1} depth:{from:46, to:78} tableSize:{from:52, to:80} color:{from: 1 to: 13} cut:{from: 0 to: 4} clarity:{from: 1 to: 9}  isLabDiamond:false shippingDays:999 ) {total   hits   pageNumber   numberOfPages  items { categories  productID  sku  productType  generalType  isExpressShipping  galleryUrl  title  description  itemID  sku  shippingDate  shippingDates{  shippingDate {    date    byValentines    byNewYears    byXmas    isFastShipping  } invShippingDate {    date    byValentines    byNewYears    byXmas    isFastShipping  }}  isFirmShipping  price  salePrice  originalPrice  url  metaTitle  metaDescription  targetSite  status {    id    name  }   stone {    simpleColor    species    variety    treatment    ratio    isTrueHearts    isGemstonePair    fancyColorOvertone    measurements    measureLength    measureWidth    isLabDiamond    isArgyle    carat    shape { id name }    color { id name isFancy}    cut { id name}    clarity { id name}    lab { id name}    flour { id name fullName }    symmetry { id name fullName } polish { id name fullName }  colorIntensity { id name } depth tableSize}}}}"}

    url = "https://product-service.r2net.com/diamond/v/2/"
    With CreateObject("WinHttp.WinHttpRequest.5.1")
        .Open "Post", url, False
        .SetRequestHeader "content-type", "application/json"
        .Send pp
        Set json = JsonConverter.ParseJson(.Responsetext)
        Set res = json("data")("searchByIDs")("items")
            arr(y, 1) = "sku"
            arr(y, 2) = "price"
            arr(y, 3) = "salePrice"
            arr(y, 4) = "originalPrice"
            arr(y, 5) = "title"
        For Each x In res
            y = y + 1
            arr(y, 1) = x(1)("sku")
            arr(y, 2) = x(1)("price")
            arr(y, 3) = x(1)("salePrice")
            arr(y, 4) = x(1)("originalPrice")
            arr(y, 5) = x(1)("title")
        Next
    End With
    Sheet2.Range("A1").Resize(20001, 10) = arr
End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-02-16_145305.png" style="width: 711px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40035i9E7DED605E347C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-02-16_145305.png" alt="2022-02-16_145305.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:53:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%E7%9A%84%E6%95%B0%E6%8D%AE%E6%80%8E%E6%A0%B7%E7%94%A8%E8%84%9A%E6%9C%AC%E5%88%86%E6%9E%90%E5%9C%B0%E5%9D%80%E6%80%8E%E6%A0%B7%E8%8E%B7%E5%8F%96%E5%B9%B6%E4%B8%8B%E8%BD%BD/m-p/461213#M70625</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-02-16T06:53:34Z</dc:date>
    </item>
  </channel>
</rss>

