I think I didn't explain clearly what is the problem.
I altrady use the skip_ad_pages method in my recipe the same way of the first code you quoted and it works except for the image link...so texts are fetched correctly but not images.
I'm looking for something to replace the article url calibre has with the correct url because the final html is the right html code but the article url in the internal structure is still the wrong url. For this reason (I think) calibre prepend the wrong link to build the image source url.
I don't know if it is possible inside the skip_ad_pages method because it takes only a "soup" and return only a "soup".
I don't care to do this inside the skip_ad_pages method, but I don't know which is the method I can use to do this replacement and how to do that.
I hope it is clearer now...my english is very rusty...
|