Giter VIP home page Giter VIP logo

Comments (4)

SerMs avatar SerMs commented on August 15, 2024

名字是我博客名字SerMs.爬到得是店长得文章

from hexo-circle-of-friends.

2X-ercha avatar 2X-ercha commented on August 15, 2024

(注:不是个例)

from hexo-circle-of-friends.

hiltay avatar hiltay commented on August 15, 2024

volantis解析规则导致,已经解决@Ser-MingShao。
目前不知道是不是volantis的某个主题或者是魔改,所以暂时提供解决方案:
修改仓库内./hexo-circle-of-friends/utils/get_url.py中函数get_volantis_url,替换成如下:

    def get_volantis_url(self,response, queue):
        avatar = response.css('a.simpleuser img::attr(src)').extract()
        if not avatar:
            avatar = response.css('a.site-card div.info img:first-child::attr(src)').extract()
        if not avatar:
            avatar = response.css('a.friend-card img::attr(src)').extract()

        link = response.css('a.simpleuser::attr(href)').extract()
        if not link:
            link = response.css('a.site-card::attr(href)').extract()
        if not link:
            link = response.css('a.friend-card::attr(href)').extract()

        name = response.css('a.simpleuser span::text').extract()
        if not name:
            name = response.css('a.site-card div.info span.title::text').extract()
        if not name:
            name = response.css('a.friend-card span::text').extract()
        if not name:
            name = response.css('a.friend-card p::text').extract()
        self.handle(avatar, link, name, queue)

如果后续其他人有类似同样的问题,会在规则中修改。

建议参考文档友链页适配,有能力自行修改的可以自行修改。

from hexo-circle-of-friends.

SerMs avatar SerMs commented on August 15, 2024

已解决,感谢大佬~
魔改主题建议自己看文档进行相应适配
友链页适配

from hexo-circle-of-friends.

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.