Start a new topic

Searching EUR-LEX in bilingual view

It seems to be not that complicated at all …

First the search string for Google, with surrounding of multiple words with double quotation marks (you can paste all URIs into Safari to check):

https://www.google.com/search?client=safari&rls=en&q=%22carne+de+cerdo%22+inurl:eur-lex&ie=UTF-8&oe=UTF-8

Then I click on the first result:

https://eur-lex.europa.eu/legal-content/ES/TXT/?uri=CELEX%3A52002XC0515%2803%29

Note the found document: %3A52002XC0515%2803%29, which looks complicated but uses actually URI (or percentage) encoding to handle the colon and brackets. 

Decode this string with Keyboard Maestro’s function:

And you get: :52002XC0515(03)

Which you can combine with the leading string https://eur-lex.europa.eu/legal-content/ES-IT/TXT/?uri=CELEX

And the trailing string &from=ES to get your desired view:

https://eur-lex.europa.eu/legal-content/ES-IT/TXT/?uri=CELEX:52002XC0515(03)&from=ES

Can you test this procedures in 3 examples for each of your language combinations and directions?


Here's the KM function: 

image


See also: https://forum.keyboardmaestro.com/t/web-get-urls-from-google-search-results-example/5234


With this nice macro you can get the first n results from Google in a collection. You can use this collection to create n bilingual views for your EUR-LEX search results.

Wonderful! This is going to save me eons of time. Thank you!

Login to post a comment