Git Product home page Git Product logo

Comments (6)

cosylxc avatar cosylxc commented on July 30, 2024

图片链接中间的那一段好像就是原来的traceid,你要截取一下,然后视频的key好在,

from xhs.

zhouzhili avatar zhouzhili commented on July 30, 2024

图片链接中间的那一段好像就是原来的traceid,你要截取一下,然后视频的key好在,

大佬,可否详细说说

from xhs.

cosylxc avatar cosylxc commented on July 30, 2024

@zhouzhili 你看网页源码,不是有图片链接吗,封面再加上点开后的图,它们链接中有一串1040g…这样的字符串,好像就是原来的traid,我下载了一下,图片尺寸大小什么的都正常。

from xhs.

Jeffrey-deng avatar Jeffrey-deng commented on July 30, 2024

@zhouzhili 你看网页源码,不是有图片链接吗,封面再加上点开后的图,它们链接中有一串1040g…这样的字符串,好像就是原来的traid,我下载了一下,图片尺寸大小什么的都正常。

没找到哎,能否截下图

from xhs.

cosylxc avatar cosylxc commented on July 30, 2024

@Jeffrey-deng image

from xhs.

Jeffrey-deng avatar Jeffrey-deng commented on July 30, 2024

@Jeffrey-deng image

嗯嗯,在下面的js对象里也有
我是这样处理的

imageList = note_info['image_list']
for image in imageList:
    if image['trace_id'] is not None and image['trace_id'] != '':
        image_file_urls.append('https://sns-img-bd.xhscdn.com/%s' % image['trace_id'])
        image_file_ids.append(image['trace_id'])
    else:
        image_file_url = list(filter(lambda info: info['image_scene'] == 'CRD_WM_WEBP', image['info_list']))[0]['url']
        image_file_urls.append(image_file_url)

from xhs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.