Skip to content

input looks more like a filename #45

@netllama

Description

@netllama

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions