Quantcast
Channel: How do I pass raw untrusted text to feedparser.parse method in Python? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by PirateApp for How do I pass raw untrusted text to feedparser.parse...

As per @mkrieger1 s comment, this would be the answerimport feedparserimport iodef read(): import os name = os.path.join(os.getcwd(), 'extras', 'feeds','zycrypto.com_1596955288219') f = open(name, "r")...

View Article



Answer by mkrieger1 for How do I pass raw untrusted text to feedparser.parse...

Apparently feedparser.parse internally expects a bytes object where it is currently receiving a string, because it passes that object to a regex matching function where it uses a bytes pattern, and the...

View Article

How do I pass raw untrusted text to feedparser.parse method in Python?

I am trying to use feedparser to parse text which I download using asyncio aiohttp libraryThe feed text is available HERE (Large document, hence not pasting here)The documentation of feedparser.parse...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images