Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

why this url lost image #70

Open
yunnian opened this issue Oct 22, 2018 · 4 comments
Open

why this url lost image #70

yunnian opened this issue Oct 22, 2018 · 4 comments

Comments

@yunnian
Copy link

yunnian commented Oct 22, 2018

http://www.mafengwo.cn/i/9359689.html

I get the content ,but haven't image ,please help me

@yunnian
Copy link
Author

yunnian commented Oct 22, 2018

file_get_content have the image ,lost after $readability->parse($html);

@CihanAksoy
Copy link

Because the images are in a div element.

@yunnian
Copy link
Author

yunnian commented Oct 29, 2018

@CihanAksoy

@andreskrey
Copy link
Owner

Actually they get removed here (during prepArticle) because their class name has the string "share" (Full name is _j_lazyload _j_needInitShare).

This also happens in the JS version of readability (at least the one included in FF63) so you might want to submit another issue there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants