Can i add new engine #2171
Comments
If the instance is very easy to add through a single xpath that will fetch the results then you just need to add another block in the engine section of settings.yml file: https://searx.github.io/searx/admin/settings.html#engine-settings But if that's not the case then you need to write the new engine in python. You can take an engine from there: https://github.com/searx/searx/tree/master/searx/engines as an example. Unfortunately there is no perfect example, maybe @dalf could suggest you one. In general the engine documentation is available here: https://searx.github.io/searx/dev/engine_overview.html |
I don't have any special recommendation. In addition to the exist documentation, note that there are (at least) two types of engine: |
on setting.yml:
I copy someone's engine baidu.py and uploaded to engine folder but it doesn't work. got 502 Bad Gateway |
Which code ? Where ? Why not your instance ? How was it installed ?
Please please please, provide more context (errors messages, how do you get error, is it always / sometimes ?). doesn't work can mean anything. Sometimes just trying to write a bug report you may find what is wrong. [EDIT] 502 Bad Gateway, it can be a problem about the instance, without more information, we can't help you. |
|
I add python file for a new engine and place it in |
Hi all,
Can i add new engine ? How?
Thanks
The text was updated successfully, but these errors were encountered: