Closed rickerp closed 3 years ago
@rickerp We have a breaking change on last version (0.2.0
) that seems didn't menioned well. sorry for that.
Updated:
from linkpreview import Link, LinkPreview, LinkGrabber
url = "http://github.com"
grabber = LinkGrabber(
initial_timeout=20, maxsize=1048576, receive_timeout=10, chunk_size=1024,
)
content, url = grabber.get_content(url)
link = Link(url, content)
preview = LinkPreview(link, parser="lxml")
When I upgraded to the last version
0.2.0
it broke my function. It can easily be reproduced my running the Advanced example in README.mdReproduce
Error (example)
Versions