How to create a macro for FamilySearch (a genealogy site)?

I am a complete new user to KM.
How do I create a macro to search on FamilySearch?
The link looks like this:
https://www.familysearch.org/search/discovery/results?q.givenName={query1}&q.surname={query2}&q.birthLikePlace={query3}&q.birthLikeDate.from={query4}&q.deathLikePlace={query5}&q.deathLikeDate.from={query5}&count=100&offset=0

What I want to do is enter these 5 conditions and then FamilySearch will search for them.

When I visited the page you linked to I could see only 4 fields and not 5.

Anyway, try using the Set Front Browser Field action:

image

To get the different fields, just click the downwards arrow next to "Front Browser" like this:

I hope that helps.

Can you just load a similar link in a browser to do the search (i.e. you don't need to fill in the form on the web site)?

If so, build the URL in KM and then open it. Doing it long-form so you can see each step:

FamilySearch Query.kmmacros (8.0 KB)

Image

That's assuming that your sample was using { and } as delimiters -- if they are actually part of the URL then add them in the appropriate places.

If you are going to be using anything other than basic ASCII characters you should run each variable through the "Filter: Percent code for URL" action, eg:

image

Shout if you need help with that.

1 Like

Works perfectly. But I have one more question. The variable 'Local_givenName' does not have to consist of 1 word (i.e. it has spaces). How and where should I add 'Percent code for URL'.

After you've done with any processing (you might want to title case everything if the search is case sensitive, for example) but before you start building the URL.

I should really have included it in the macro but, as usual, I didn't think about until after the fact. Here's a fixed version:

FamilySearch Query v2.kmmacros (11.0 KB)

Thanks works perfectly. I still have a lot to learn about this program, but what possibilities.

I sent you a email let me know if you get it?

Roger

I got your email.

I have written a group of macro's that will search several web sites. You do not have to key in anything. It allows you to copy information from Reunion and fills out this form. It then display a listing of several web sites to search.

If you do a lot of genealogy like I do this saves a lot of work. I use Reunion software but It can be made to use work with other applications.

Step 1 = copy information from Reunion
Step 2 = fill in the entry screen and display the list of web sites to search
Step 3 = Search the web site.

It works very well for sites in the US but not for some foreign sites. If your interested I would be glad to work with you to make it work with your application.
This is a copy of my Reunion Screen.
This is a copy of the entry and list of web sites.

(attachments)


I also use Reunion (and MacFamilytree). I am very interested in these macros. My research is mostly in the Netherlands, but I could learn from these macros. And then maybe adapt them to Dutch sites.

Email me an email address and I will export the macro's and send them to you.

There are several macro's and a pdf document.

Roger