Code Monkey home page Code Monkey logo

Comments (5)

dataabc avatar dataabc commented on June 27, 2024

需要在page_parser.py修改get_one_weibo方法,你好像只是实现了有获取能力的方法,但是没有使用,需要在get_one_weibo中使用这个方法。

from weibospider.

SingleRottenChips avatar SingleRottenChips commented on June 27, 2024

需要在page_parser.py修改get_one_weibo方法,你好像只是实现了有获取能力的方法,但是没有使用,需要在get_one_weibo中使用这个方法。

感谢回复🙏 现在可以写入获取到的链接了,但是没有链接时写入的是空白,而不是“无”。

请问还需要改哪里吗?

from weibospider.

SingleRottenChips avatar SingleRottenChips commented on June 27, 2024

需要在page_parser.py修改get_one_weibo方法,你好像只是实现了有获取能力的方法,但是没有使用,需要在get_one_weibo中使用这个方法。

感谢回复🙏 现在可以写入获取到的链接了,但是没有链接时写入的是空白,而不是“无”。

请问还需要改哪里吗?

听从了Chatgpt的建议,在 def get_video_page_url(self, info) 中 添加:

    if video_page_url == '':
        video_page_url = u'无'

现在可以写入 无 了。

一开始想不明白为什么 get_video_page_url(self, info) 需要再赋值,刚才突然想到,如果链接不存在的话,

        video_page_url = CommentParser(self.cookie,
                                       weibo_id).get_video_page_url()

这里生成应该是空白,所以就写入空白?

考虑到视频原url过期后就打不开了,而视频页面url,只要微博未删除,即便设置了“仅半年可见”,也是可以通过自己发布 正文为页面url 的微博 来看到视频的;要不要考虑一下把原本写入视频url改为视频页面url呢?

from weibospider.

dataabc avatar dataabc commented on June 27, 2024

暂时没有这个打算。

from weibospider.

SingleRottenChips avatar SingleRottenChips commented on June 27, 2024

暂时没有这个打算。

好吧。感谢大神的开发和指导❤️

from weibospider.

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.