Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Add engine for Emojipedia #3278

Merged
merged 5 commits into from
Jul 28, 2022
Merged

Add engine for Emojipedia #3278

merged 5 commits into from
Jul 28, 2022

Conversation

obfuscated-loop
Copy link
Contributor

What does this PR do?

This adds an Emojipedia engine to searX, making it easy to find whatever emoji you want under a certain search term.

Why is this change important?

Emojis are commonly used for various types of expression, and aren't language specific. The problem is that not all systems have a place to search for an exact emoji - or even copy them. This is where Emojipedia comes in; it's essentially a Wikipedia of different emojis, which also, showcases how the emojis will look on different systems.

By using it as an engine within searX, you can copy from the direct search result or visit the page to learn more about the emoji as summarised.

How to test this PR locally?

!em person
This should return a search result including emojis with people in them.

Author's checklist

Related issues

return42 pushed a commit to return42/searxng that referenced this pull request Jul 8, 2022
Emojipedia is an emoji reference website which documents the meaning and
common usage of emoji characters in the Unicode Standard.  It is owned by Zedge
since 2021. Emojipedia is a voting member of The Unicode Consortium.[1]

Cherry picked from @james-still [2[3] and slightly modified to fit SearXNG's
quality gates.

[1] https://en.wikipedia.org/wiki/Emojipedia
[2] obfuscated-loop/searx@2fc01eb
[3] searx/searx#3278
@kvch
Copy link
Member

kvch commented Jul 12, 2022

@james-still Do you mind fixing the error in the Python 3.9 job?

return42 pushed a commit to return42/searxng that referenced this pull request Jul 15, 2022
Emojipedia is an emoji reference website which documents the meaning and
common usage of emoji characters in the Unicode Standard.  It is owned by Zedge
since 2021. Emojipedia is a voting member of The Unicode Consortium.[1]

Cherry picked from @james-still [2[3] and slightly modified to fit SearXNG's
quality gates.

[1] https://en.wikipedia.org/wiki/Emojipedia
[2] obfuscated-loop/searx@2fc01eb
[3] searx/searx#3278
@obfuscated-loop
Copy link
Contributor Author

@james-still Do you mind fixing the error in the Python 3.9 job?

Sorry for the late response. Just made the commit.

@kvch
Copy link
Member

kvch commented Jul 24, 2022

I've tested the engine with the example query you provided, but I get no results back. Am I missing something?

@obfuscated-loop
Copy link
Contributor Author

I've tested the engine with the example query you provided, but I get no results back. Am I missing something?

That's odd, maybe try a different query like 'math' - as you can see it's been merged into searXNG and seems to be working fine.

@obfuscated-loop
Copy link
Contributor Author

I think they might have updated their site and it's affecting the xPath values. I'll have a closer look in an hour.

@obfuscated-loop
Copy link
Contributor Author

All working now but leave it unmerged. I'll implement a relative xPath tonight so this doesn't happen again.

@obfuscated-loop
Copy link
Contributor Author

Should be good to merge now by the way 👍

@kvch
Copy link
Member

kvch commented Jul 28, 2022

Thank you!

@kvch kvch merged commit 210e59c into searx:master Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants