[x] I searched other issues (including closed issues) and could not find any to be related. If you find related issues post them below or directly add your issue to the most related one.
[x] I confirm that this bug report does not report on a specific news site where news-please does not work. Please keep in mind that news-please is a generic crawler so it is expected that it will not work for all sites well or even at all.
Related issues:
ElasticSearch Backend won't work due to API changes in dependant ElasticSearch lib.
Describe the bug
Specially in the pipelines.py the change of ElasticSearch lib made it impossible to use it as a backend.
For example, we can have the errors below while using news-please with ElasticSearch.
TypeError: __init__() got an unexpected keyword argument 'port'
TypeError: __init__() got an unexpected keyword argument 'use_ssl'
builtins.ValueError: URL must include a 'scheme', 'host', and 'port' component (ie 'https://localhost:9200')
builtins.TypeError: Positional arguments can't be used with Elasticsearch API methods. Instead only use keyword arguments.
TypeError: index() got an unexpected keyword argument 'doc_type'
To Reproduce
Just use it with recent ElasticSearch lib as described as the Readme.
But with host change to `host = https://localhost:9200
Expected behavior
ElasticSearch should works well with news-please
Versions (please complete the following information):
OS: Mac OS Ventura
Python Version : 3.9
news-please Version: master branch
Intent (optional; we'll use this info to prioritize upcoming tasks to work on)
Mandatory
Related issues:
ElasticSearch
lib.Describe the bug Specially in the
pipelines.py
the change of ElasticSearch lib made it impossible to use it as a backend. For example, we can have the errors below while usingnews-please
with ElasticSearch.To Reproduce Just use it with recent ElasticSearch lib as described as the Readme. But with
host
change to `host = https://localhost:9200Expected behavior ElasticSearch should works well with news-please
Versions (please complete the following information):
Intent (optional; we'll use this info to prioritize upcoming tasks to work on)