質問

I'm using Readability Parser API to get content of the page.
After result received content goes to kidlegen.exe(to generate .mobi) and then to my kindle via email. The problem is content i get from Readability Parser API contains <img> to remote images, so i need to download them firts and only then launch kindlegen.exe.
The question is how to download remote images from article to my disk in efficient way? I can see only one solution - use regexp to parse response to extract <img>, then extract scr attribute and finally download images, but that's definitely worst way.
I'm using ASP.NET MVC.

役に立ちましたか?

解決

Looks like i need HtmlAgilityPack. I'll detach this task from web application to console.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top