Open aktywnitu opened 8 years ago
Some errors corrected: self.style_string += self._get_url(url).decode('utf-8')
, but still new:
File "venv3/lib/python3.5/site-packages/pynliner/soupselect.py", line 110, in select
raise Exception("No match was found. We're done or something is broken")
Exception: No match was found. We're done or something is broken
ok, i see that pynliner not support some css selectors (for example "audio:not([controls])". Why pylinter don't continue after comming with unrecognized token - it raises exception, which make this library useless for many cases.
Why this patch: self._get_url(url).decode('utf-8') Is not applied to source code ?
@aktywnitu: does this PR fix your issue? https://github.com/rennat/pynliner/pull/55
@rennat We can't migrate to Python 3 because of this error. Is pynliner unmaintained?
Howdy @utapyngo , I do maintain pynliner but I don't actively use it on any projects anymore. This means I only get around to merging in PRs and making releases a few times a year. PR #55 looks fine. I hope to get to this before the new year. Thanks for being involved and making a pull request!
Hey @rennat we need PR #55 merged to have Python 3 compatibility, are you planning to merge it soon? Thanks @utapyngo
PR #55 is merged and released in 0.8.0 @utapyngo @emiviada
@aktywnitu can you confirm if your issue is still happening on version 0.8.0?
you can use any online cssinliner, if you wan't to use this for email. there are lot of option, just google it.
I have some code:
In Python 3:
In Python 2:
Please help me achieve result.