Scrapy Splash On Ubuntu Server: Got An Unexpected Keyword Argument 'encoding'
The Scrapy Splash I am using is working just fine on my local machine, but it returns this error when I use it on my Ubuntu server. Why is that? Is it caused by low memory? File
Solution 1:
TypeError: init() got an unexpected keyword argument 'encoding'
It seems that you passing somewhere to class init (instance creating probably) an extra parameter 'encoding'. Try to investigate that.
Solution 2:
I solve it by using the exact URL instead:
SPLASH_URL = 'http://therealip:8050'
Any localhost solution doesn't work. I think it's a bug in Scrapy Splash.
UPDATE
It turns out, the error is also gone if I turn off Crawlera. But then it reproduces another error. It's best to not use localhost in the configuration.
Post a Comment for "Scrapy Splash On Ubuntu Server: Got An Unexpected Keyword Argument 'encoding'"