Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
search line from CSV
#1
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.
Reply
#2
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
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.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Search for the line number corresponding to a value Lali 0 1,618 Oct-22-2019, 08:56 AM
Last Post: Lali
  Help with python code to search string in one file & replace with line in other file mforthman 26 11,680 Dec-19-2017, 07:11 PM
Last Post: Larz60+
  search and replace with line in document chickflick91 2 3,323 Oct-15-2017, 06:33 AM
Last Post: chickflick91

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020