0
Answered
Herman 2 months ago in Portia • updated by robi9011235 4 weeks ago 5

(1)

[scrapy.core.scraper] Error downloading <GET https://www.openrice.com/en/hongkong/restaurants>:[<twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>]


3 ScrapyDeprecationWarning

py.warnings] /src/slybot/slybot/slybot/closespider.py:10: ScrapyDeprecationWarning: Importing from scrapy.xlib.pydispatch is deprecated and will no longer be supported in future Scrapy versions. If you just want to connect signals use the from_crawler class method, otherwise import pydispatch directly if needed. See:https://github.com/scrapy/scrapy/issues/1762

More

Answer

Answer
Answered

Hi Herman, the error reported seems to be a connection failure according our experts.

Please try to run it again.

About the warning, it shouldn't give you any problem. Our developers will update all necessary libraries when required.

Kind regards,

Pablo

Answer
Answered

Hi Herman, the error reported seems to be a connection failure according our experts.

Please try to run it again.

About the warning, it shouldn't give you any problem. Our developers will update all necessary libraries when required.

Kind regards,

Pablo

HI Pablo,

Thanks for the help. I agree it is really this error: twisted.python.failure.Failure twisted.internet.error.ConnectionDone, that is causing it to fail. But I don't know how to solve this error. Is it by defining user_agent? Is that possible in Portia? Thanks.

Have you tried to run it again and this error is still shown?

Regards!

Thanks for your reply. Yes, I have run a couple of times and the same error occurred.

Try

sudo pip install Twisted==16.4.1

It helped me in a situation like yours