# A new WebSearch gramplet is ready

**URL:** <https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188>\
**Category:** Development\
**Tags:** third-party-addon\
**Created:** [March 9, 2025, 3:13pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188 "2025-03-09T15:13:08Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 22, 2025, 6:55pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/142 "2025-03-22T18:55:52Z")

</div>

I still see some cosmetic issues/features. But I think they dont have a big affect to usability and so on…  
For example:

- I think that the second column shold have only flags OR Earth icon OR textual locales. ALL others icons (“UID”, icvon for attributes and icon for static links) should be moved to the first column with icons.
- Also each icon type should be disabled/enabled in Settings.
- Also I want hide Vars counts where it doesnt make sense

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 22, 2025, 7:25pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/143 "2025-03-22T19:25:16Z")

</div>

> [@Urchello](#):
>
> I’ve created two pull requests. WebSearch gramplet will be available in 5.2 and 6.0 versions after approve 🤠.

The starter “Help” page for the wiki has been created. You can switch the `help_url` attribute in the `.gpr.py` registry to the “Addon:WebSearch” address instead of the GitHub fully qualified URL.

> <https://github.com/jurchello/WebSearch/blob/3e51b117c844ed7eb17b5748e5b5cd319b134ce0/WebSearch.gpr.py#L40C1-L41C34>

The `help_url` attribute is used by the Help button on detached/undocked gramplets and the Wiki buttons for the selected plugin when in the [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager) and the Plugin Manager enhanced.

Please check the bottom of [Addon:WebSearch wiki page](https://gramps-project.org/wiki/index.php/Addon:WebSearch#See_also) for the proposed row for the Addons List in the wiki. The “Download” (for manual installs) will change soon after your Pull Request is merged and the files are created.

But how YOU want to be "Contact"ed is a guess. Many developers prefer the requests to go through GitHub issues or MantisBT. The current listing has your eMail address and this is probably the wrong choice.

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 22, 2025, 7:25pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/144 "2025-03-22T19:25:43Z")

</div>

The full and actual list of planed tasks is located here [GitHub · Where software is built](https://github.com/jurchello/WebSearch/issues)

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 22, 2025, 7:34pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/145 "2025-03-22T19:34:01Z")

</div>

> [@emyoulation](#):
>
> The starter “Help” page for the wiki has been created.

The help page is very clear for users! Thank you a lot for your help!

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 22, 2025, 7:36pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/146 "2025-03-22T19:36:45Z")

</div>

> [@Urchello](#):
>
> The help page is very clear for users! Thank you a lot for your help!

It has a long way to go. (But will be on hold until after Sam rolls over the wiki. Don’t want to cause a conflict or lose edits.) You have a LOT of stuff in there!

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 22, 2025, 7:37pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/147 "2025-03-22T19:37:23Z")

</div>

> [@emyoulation](#):
>
> But how YOU wan to be "Contact"ed is a guess. Many developers prefer the requests to go through GitHub issues or MantisBT. The current listing has your eMail address and this is probably the wrong choice.

what do you suggest to do? Do I need Mantis account under the same email?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 22, 2025, 7:45pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/148 "2025-03-22T19:45:17Z")

</div>

> [@Urchello](#):
>
> what do you suggest to do? Do I need Mantis account under the same email?

Using an eMailbox doesn’t allow others to collaborate on solutions for requests.

I’d suggest using the [Issues](https://github.com/jurchello/WebSearch/issues) feature in your personal GitHub repository.

Your issues would become buried among others for the general [Pull Requests](https://github.com/gramps-project/addons-source/pulls) in the Gramps-project/addons-source repository. And if you don’t have a MantisBT account, it might make sense to wait a bit. @Nick-Hall has floated a survey in the Gramps-devel maillist about whether Gramps should move to GitHub Issues.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [March 22, 2025, 8:36pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/149 "2025-03-22T20:36:21Z")

</div>

> [@Urchello](#):
>
> Do I need Mantis account under the same email?

I have given your Mantis BT account developer access so that bug reports can be assigned to you.

Feel free to continue with GutHub issues in your own repository if you find that easier.

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 23, 2025, 7:34pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/150 "2025-03-23T19:34:08Z")

</div>

@romjerome We have already discussed these links, but again I have some doubts about whether they should be placed in separate CSV files for each country. The thing is, I copied these links from another Gramplet oriented towards the French region. Also, it seems that these links are written in French text, isn’t that right? I believe that, regardless of where the archival source is located, the links should be available where users will use them. If the French are researching their roots in Belgium or Canada, why not display these links for their region?

```python
fr-links.csv
People,Canadian source (people),1,https://www.fichierorigine.com/recherche?nom=%(surname)s,
Places,Canadian source (places),1,https://www.fichierorigine.com/recherche?commune=%(place)s&pays=%(root_place)s,
People,Belgium's Archives,1,https://search.arch.be/fr/rechercher-des-personnes/resultats/q/zoekwijze/s?text=%(surname)s, 

us-links.csv
People,Australia Family Notices,1,https://trove.nla.gov.au/newspaper/result?q=%(given)s+%(surname)s&exactPhrase=&anyWords=&notWords=&requestHandler=&dateFrom=&dateTo=&l-advcategory=Family+Notices&sortby=,

```

---

<div class="post-metadata">

**Author:** ![GaryGriffin](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/garygriffin/32/6525_2.png) [@GaryGriffin](https://gramps.discourse.group/u/GaryGriffin)\
**Post date:** [March 23, 2025, 8:49pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/151 "2025-03-23T20:49:34Z")

</div>

PRs for WebSearch on 5.2 and 6.0 have been merged and published. Gramplet now available thru the [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager).

---

<div class="post-metadata">

**Author:** ![romjerome](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/romjerome/32/1489_2.png) [@romjerome](https://gramps.discourse.group/u/romjerome)\
**Post date:** [March 23, 2025, 9:01pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/152 "2025-03-23T21:01:45Z")

</div>

Well, OrigineFile (_which could be translated by “BirthFile” or “RootFile”_), is like a small “Ellis Island” for ancestors coming from France, to Canada (or USA). Sure, the lang is french, but it is like putting the “British” flag 🏴󠁧󠁢󠁥󠁮󠁧󠁿 (or union jack 🇬🇧 ) for Ellis Island databases… Up to you, but the flag for France sounds a little bit strange for ancestors in Canada.  
Maybe ask [pgerlier](https://gramps.discourse.group/u/pgerlier/summary)?

For information, you may find places speaking french (or english) on all continents… 🫩 🇨🇵 🇹🇫 🇼🇫 🇳🇨 🇲🇶

Sure, the original starting point could be France, but now (today), it could be also Canada, Switzerland, Belgium, Countries from Africa or Asia, …

If you look at extension (eg., ‘.be’ for Belgium), I suppose that people looking at this url are expecting urls for Belgium? So, this could be also strange to check these databases for one with only ancestors in France…

* * *

_IA_ (cliché)

**Question :** “I grumble like a German and complain like a Frenchman, who am I?”

**Réponse :** “The answer to this riddle is ‘an Alsatian’. Alsace is a region of France that has a strong German influence due to its history, which explains the combination of the two cultural traits mentioned.”

* * *

So, flag is maybe not a right symbol for a lang!

I quickly looked at hardcoded urls for the french web sites too. Maybe most APIs are now deprecated (version 1, 2 ,3, etc.) … ☹  
Maybe need a [review](https://www.geneanet.org/forum/viewtopic.php?t=923134), at least for 🇫🇷?

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 23, 2025, 9:58pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/153 "2025-03-23T21:58:32Z")

</div>

> [@romjerome](#):
>
> I quickly looked at hardcoded urls for the french web sites too. Maybe most APIs are now deprecated (version 1, 2 ,3, etc.) … ☹  
> Maybe need a [review](https://www.geneanet.org/forum/viewtopic.php?t=923134), at least for 🇫🇷?

Today, I conducted a thorough check of all the links for 404 errors, checked their regional relevance, and replaced http with https where possible. Here is the full list of changes: [csv updated · jurchello/WebSearch@6125752 · GitHub](https://github.com/jurchello/WebSearch/commit/61257525c368a43469e234ac1ccdff6298344ba0) However, I also realized that I can fully control the quality of these links only for my native language. To set up search correctly, you need to know what to search for and what to input into the search fields. Each website has its own language and its own nuances. Only regional specialists, genealogists who know the language and are familiar with the genealogical resource, are capable of preparing high-quality search links. All I can do is submit the proposed additions to the project so that they become publicly available. Therefore, I ask users to prepare complete search templates and send them to me in the ready-to-use form. On my part, I promise technical assistance if any users have questions about how to correctly form a link template.

Yes, I agree with you. It would be ideal if a specialist for each language could review all the links for their region and make adjustments as needed.

---

<div class="post-metadata">

**Author:** ![romjerome](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/romjerome/32/1489_2.png) [@romjerome](https://gramps.discourse.group/u/romjerome)\
**Post date:** [March 24, 2025, 1:55pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/154 "2025-03-24T13:55:33Z")

</div>

> [@Urchello](#):
>
> Therefore, I ask users to prepare complete search templates and send them to me in the ready-to-use form. On my part, I promise technical assistance if any users have questions about how to correctly form a link template.

I did some updates in the past against cryptic APIs for urls into the french pack.

A quick look at geneanet new API, maybe you can move, at least one old reference on the template (fr.csv), and replace it with a new one (deprecaded version ?). At a glance, to replace:  
[https://search.geneanet.org/result.php?lang=fr&name=%(surname)s](https://search.geneanet.org/result.php?lang=fr&name=%25(surname)s)"  
by:  
[https://www.geneanet.org/fonds/individus/?go=0&nom=%(surname)s&prenom=%(given)s](https://www.geneanet.org/fonds/individus/?go=0&nom=%25(surname)s&prenom=%25(given)s)  
Maybe also in english.

I do not know if this could be useful but:

```python
$ curl https://www.geneanet.org/fonds/individus/?go=0&nom=nom&prenom=prénom
...

```

```python
$ curl https://www.geneanet.org/fonds/individus/?go=0&surname=nom&given=prénom
...

```

```python
$ curl https://www.geneanet.org/fonds/individus/?go=0&aeiouy=nom&blabla=prénom
...

```

this sounds like not to be the real “API”…

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 24, 2025, 2:18pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/155 "2025-03-24T14:18:48Z")

</div>

Let us start another thread for new WebSearch site definitions.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 24, 2025, 2:39pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/156 "2025-03-24T14:39:23Z")

</div>

> [@emyoulation](#):
>
> Let us start another thread for new WebSearch site definitions.

The thread’s 1st posting might have the workflow for creating the _ **personal** _ CSV and JSON files.

If you set those 2 files as Media “objects” (and set your OS to open .csv and .json files in a text editor), will revisions to those files recognize immediately? (That is unlikely, as there is no “signal” for an updated file in the file system.) Or, upon the next active object change? Or, do you have to reload the gramplet (or Gramps) to refresh the Gramplet?

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 24, 2025, 2:42pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/157 "2025-03-24T14:42:18Z")

</div>

I will create a new branch a bit later and will answer to all the questions @romjerome @emyoulation . Thank you!

---

<div class="post-metadata">

**Author:** ![romjerome](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/romjerome/32/1489_2.png) [@romjerome](https://gramps.discourse.group/u/romjerome)\
**Post date:** [March 26, 2025, 9:58am UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/158 "2025-03-26T09:58:01Z")

</div>

> [@Urchello](#):
>
> So, you need about 3-4 dollars per a year if use it every day.

By using ‘Le chat’, I guess (_I could be wrong_) that we might get a limited access by contacting Mistral AI, for a temp free access (generic API access key) to few prompts for an open-source project (no commercial view). Also for gramps-web…

e.g, I do not know if it is possible outside France (should work on borders, Belgium, Switzerland, Monaco !!!, etc.).  
You can pay for a mobile 2G/3G (SIM card) for [2€ per month on Free (internet provider and mobile provider) and enable a “Mistral Pro” access](https://portail.free.fr/mag-free/bons-plans/chat-pro-mistral-intelligence-artificielle-12-mois-gratuit-abonnes-free/) (_take care it is for 11 months + some days…_ **17,99€/month on the next year** )! A Chat-GPT Pro-like (maybe be better and more efficient…) for 2€ per month…

DeepSeek and Mistral sound more in the real ‘cost’ life! 🤬

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 26, 2025, 11:37am UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/159 "2025-03-26T11:37:58Z")

</div>

> [@romjerome](#):
>
> So, I do not know the expected return and this has not been tested from WebSearch. This is only a starting point. As you can see, there is few differences between your code for the OpenAI support and the MistralAI support. Maybe a AIs selector could be a proper solution?

1. Now the openAI API key should be added directly to the Settings, not via keyring.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/8126b5cfd7386f33794166d0d6a7bcd85045ba31.png)

I’ve removed keyring because it shows unexpected wodals when openai key is missing and I can not block them from python.

1. I didnt implement Mistral AI support, only OpenAI is supported at the moment.

2. Also I’ve calculated real costs of OpenAI usage in the WebSearch gramplet. Its calculated here:

> **[GitHub - jurchello/WebSearch: Gramps addon](https://github.com/jurchello/WebSearch?tab=readme-ov-file#7-openai-usage)**
>
> Gramps addon

> **Cost Considerations:** As of **March 18, 2025** , the average cost per request is **0.0091 USD** (0.91 cents). With this pricing, approximately **109 requests** can be made for **1 USD**.

So, you need about 3-4 dollars per a year if use it every day.

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [March 26, 2025, 11:44am UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/160 "2025-03-26T11:44:05Z")

</div>

> [@romjerome](#):
>
> I started an experimental Mistral AI support

I can also implement supporting of Mistral. I didn’t use it, but I think it will not be difficult.

> <https://github.com/jurchello/WebSearch/issues/78>

---

<div class="post-metadata">

**Author:** ![romjerome](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/romjerome/32/1489_2.png) [@romjerome](https://gramps.discourse.group/u/romjerome)\
**Post date:** [March 26, 2025, 2:07pm UTC](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/161 "2025-03-26T14:07:56Z")

</div>

> [@romjerome](#):
>
> I do not know if it is possible outside France (should work on borders, Belgium, Switzerland, Monaco !!!, etc.).

In theory, you can use it everywhere (roaming, 4G/4G+ cost ?)  
"_Can I use my €2 Plan abroad?_

_Yes, it is possible to use your €2 Plan abroad. To do so, you simply need to activate the Travel Option in your Subscriber Area before your departure. This option allows you to receive and send SMS/MMS and make calls from abroad to France. These communications are billed at the rates in effect as listed in the rate brochure._"

Mistral AI Pro : 2 x 12 = 24€ for 2025/2026  
Chat-GPT / Pro : 20 to 200$ per month

Sure, OpenAI does a better job on some tasks, but not on all…

[Previous page](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188.md?page=7)

[Next page](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188.md?page=9)
