Comment 3 for bug 1873640

Revision history for this message
Leonard Richardson (leonardr) wrote :

Running that code I get this output, which is what I'd expect:

>>Hand wash in very hot soapy<<

I get this result using Python 2 and Python 3, using an old version of Beautiful Soup (4.6.1) and the latest version (4.9.0). The result is the same whether I use requests to retrieve https://cv-masks.github.io/ragmask-max.html from within the Python script, or whether I use my web browser to save it to a file, then open the file inside the Python script.

It sounds like you get output that looks like this:

>>Hand wash in very hot soapy\n', '<<

Is that right?

Can you run this iteration and paste the output?

for t in text:
    if t.parent.name not in blacklist:
        print(repr(t))