Python Forum
search line from CSV - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: search line from CSV (/thread-3959.html)



search line from CSV - shead - Jul-11-2017

Hey,
I need to translate 6,000 names of movies.
I have all the names in a CSV file and a website that you put the name in a search line and you get the name of the movie in english.

shortly:
Input: Names that arranged by rows in a CSV file.
Each rowneed to be copied to a search line on a Web site.
Output: A new CSV file with the translated names.

can anyone help me or direct me to read some similar codes, I'm pretty new with python.


RE: search line from CSV - ichabod801 - Jul-11-2017

The csv module has features for reading and writing csv modules. I'm not the top web guy here, but I think the mechanize module might be what you want for getting the translation.


RE: search line from CSV - wavic - Jul-12-2017

It will be hard to do that. The translation is not literal. You may get some strange results. Also, some movie titles translation are not accurate and the people may know them with other names.