Dec-24-2018, 02:43 PM
Hi everyone,
First of all merry Christmas to all of you :D
Now, my issue is that : I'm trying to script something that allow me to scrape data from a bi-lingual web page to translate and store translations in a unique list (for after that put all that in a .xlsx page but not for now lol :p).
For example, from English to French :
With the word "house" generate his French translation in a list : ['maison', 'demeure', 'rédisence']
After this fist loop, search the translation of an other word.
For instance, "good", which will output the translation in list format : ['bon', 'bien', 'bonne']
And so on until I've finished my translations.
At that time, I would like to do is to gathered all of list lists in one list, like this : [['maison', 'demeure', 'rédisence'], ['bon', 'bien', 'bonne']]
But I didn't succeed to do that... I've tried so many way that I've forgotten what I've tried lol ^^' can anyone help me please ? :)
What my script does, is only printing the list of the last word translated but I would like to print all of them in one list like above :/
My piece of code here :
Please be indulgent with me, I'm new in programming and I've done all of this with Youtube and Google ^^'
Thank you very much :)
First of all merry Christmas to all of you :D
Now, my issue is that : I'm trying to script something that allow me to scrape data from a bi-lingual web page to translate and store translations in a unique list (for after that put all that in a .xlsx page but not for now lol :p).
For example, from English to French :
With the word "house" generate his French translation in a list : ['maison', 'demeure', 'rédisence']
After this fist loop, search the translation of an other word.
For instance, "good", which will output the translation in list format : ['bon', 'bien', 'bonne']
And so on until I've finished my translations.
At that time, I would like to do is to gathered all of list lists in one list, like this : [['maison', 'demeure', 'rédisence'], ['bon', 'bien', 'bonne']]
But I didn't succeed to do that... I've tried so many way that I've forgotten what I've tried lol ^^' can anyone help me please ? :)
What my script does, is only printing the list of the last word translated but I would like to print all of them in one list like above :/
My piece of code here :
Please be indulgent with me, I'm new in programming and I've done all of this with Youtube and Google ^^'
Thank you very much :)