阅读背景:

从发布的链接/和发布的页面中提取主图像

来源:互联网 

Game plan is to extract those main images, and display them in a thumbnail in the index page. I'm having so much trouble for this functionality, it seems like there's no example for this functionality in the internet. I found three options 1. beautifulsoup// seems like people use this approach the most but I have no idea how beautifulsoup can find the representative image...also it requires the most work I think. 2. python goose// this looks legit. the documentation says it extracts main image, I guess I need to trust their words. problem is I don't know how to use this in django. 3. embedly//....maybe wrong choice for the functionality I need. I'm thinking to use python goose for this project. My question is how would you approach this problem? and do you know any example or can provide some example I can look at? for extracting image from images user provide to my page I can probably use sorl-thumbnail(right?_) but for posted link....??Game plan is to extract those main images, and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: