Comments (4)
名字是我博客名字SerMs.爬到得是店长得文章
from hexo-circle-of-friends.
(注:不是个例)
from hexo-circle-of-friends.
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.
已解决,感谢大佬~
魔改主题建议自己看文档进行相应适配
友链页适配
from hexo-circle-of-friends.
Related Issues (20)
- No module named 'hexo_circle_of_friends' HOT 3
- 服务器部署,友联不是我的
- json方式是较为通用的方式; HOT 1
- 【后端报错】{"detail":"Not Found"} 404 HOT 3
- GitHub+sqlite 部署后,Actions工作流运行时间非常长或者报错
- vercel 无法访问,能否考虑添加其他
- https://www.xiaoyaomeow.cn/fcircle/
- https://blog.xiangming.site/links
- 有些旧文章总是会被识别成新文章
- 关于部署后,文章link的链接和实际文章不一致
- 想知道,能否在列表显示摘要?
- JSON格式看起来没问题,但是解析失败
- start error错误 已经看过常见问题 HOT 2
- 无法写入MongoDB数据库 HOT 1
- 极简模式下遇到 {"message": "start error"} 问题 HOT 4
- 在前端控制面板点击登陆 输入密码显示登陆失败
- 希望 json 友链能支持使用 feed 完整 url 来爬取文章 HOT 1
- 极简模式在获取 issue 友链的时候出现 429 错误 HOT 1
- 爬取友联头像与作者错误
- docker+mysql部署,友链不能更改为自己的 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-circle-of-friends.