Python Forum

Full Version: search line from CSV
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
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.