rajatomar788 / pywebcopy

Locally saves webpages to your hard disk with images, css, js & links as is.
https://rajatomar788.github.io/pywebcopy/
Other
527 stars 106 forks source link

same domain pdf links wrapped by anchor tag is skipped #74

Closed NickVeld closed 3 years ago

NickVeld commented 3 years ago

Because of:

class AnchorTag(NullTag):
    """Anchor tag does nothing.
    Otherwise it will go on a infinite websites download spree.
    """
rajatomar788 commented 3 years ago

Pdf links can be without extension also. Which makes it unnecessary to add checks.

NickVeld commented 3 years ago

In my case there are links with extension inside and I forced them to be processed as TagBase

NickVeld commented 3 years ago

Fixed in https://github.com/rajatomar788/pywebcopy/pull/75