Conversation
| "https://www.mojeek.com/search?q=%40exemple.com&s=10" | ||
| ] | ||
|
|
||
| assert any("mojeek.com" in url for url in called["urls"]) |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High test
|
|
||
| assert "admin@exemple.com" in emails | ||
| assert "dev@exemple.com" in emails | ||
| assert "www.exemple.com" in hosts |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High test
| assert "admin@exemple.com" in emails | ||
| assert "dev@exemple.com" in emails | ||
| assert "www.exemple.com" in hosts | ||
| assert "api.exemple.com" in hosts |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High test
|
Thanks for this Alice, pytest is failing as you forgot to add an entry for the api key in the api keys file in data folder |
|
Can you update README.md file please, you will see others that are in there if you can follow the same setup, hope that makes sense lol |
|
You have not actually set in the module to use said api key |
|
You're right ! I'll add |
|
Hope this will work correctly haha |
|
You have added the api key to the module but it's not actually being activated, take a look at say the fullhunt module and you should hopefully see what I mean |
|
Do I have to add in mojeek.py ? |
|
Since Mojeek is a scraping-based engine (similar to Baidu or Bing) and does not require an API key for these queries, I used baidusearch.py as a reference for my first search logic ! |
Yeah |
As you say it does not need the api key but does support it maybe implement when an api key is given use that if not fallback to using the non api method? Should cater to both situations then |
|
Any more luck @cyberkimchi with the changes I mentioned? |
Description
Added Mojeek as a new search provider for host and email discovery
Changes
theHarvester/discovery/mojeek.pytests/discovery/test_mojeek.py__main__.pyandcore.pyQuality Check