Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input looks more like a filename #45

Open
netllama opened this issue Nov 26, 2022 · 0 comments
Open

input looks more like a filename #45

netllama opened this issue Nov 26, 2022 · 0 comments

Comments

@netllama
Copy link

I'm running feediverse-0.3.0 to consume a twitter XML/RSS feed. Occasionally, that process fails with the error/warning:

/home/netllama/stuff/mastodonbot/lib64/python3.10/site-packages/bs4/__init__.py:435: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.
  warnings.warn(

The problem always goes away on its own, usually without any changes to the RSS feed at all.

Is there some way to suppress this warning other than redirecting it to /dev/null or using some sort of 'grep -v' pipeline?
Or some way to actually have the warning generate more verbose information on what its actually receiving when this fails, so that I can actually debug it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant