Replace a line in multiple text files by comparing with csv - Python

Budget N/A
Bids 24
Average Bid $114

the purpose of the project is to match playlist text files with the appropriate mp3 filename.
The mp3 filenames are in a one column csv file.
When a matched then replace the 3rd line of the playlist text file with the matched field from the csv.
(the 3rd line of the playlist file contains the mp3 filename).

the criterion to match is a 3 digit number which is the episode number of a radioshow.
in some cases the radioshow is split to two parts so there might be
A State Of Trance - nr. 082 (2003-01-30) Part [url removed, login to view]
A State Of Trance - nr. 082 (2003-01-30) Part [url removed, login to view]

example 1. a csv field looks like this:
A State Of Trance - nr. 249 (2006-11-12).mp3
the matching filename is:
[url removed, login to view]

so the common field is 249

example 2. a csv field has parts:
A State Of Trance - nr. 082 (2003-01-30) Part [url removed, login to view]
A State Of Trance - nr. 082 (2003-01-30) Part [url removed, login to view]
the matching filenames are:
01 Armin van Buuren - A State of Trance, episode 082 [The Newest Tunes Selected] (2003-01-30).cue
02 Armin van Buuren - A State of Trance, episode 082 [The Newest Tunes Selected] (2003-01-30).cue

so the matching number is 082 and part 1 with 01 and part 2 with 02.

Please post a brief summary on how you plan to solve this project.
I am attaching the filenames and the playlist files to get the idea of the data.


Post a Project Like This

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • srinichal Profile Picture


    hyderabad,  India

    Perfection and dedication are the way we deal with projects on freelancer. There have been many clients all over the world that are satisfied with the solutions provided.All types of automation works along with web based solutions are our expertise. Looking to provide solutions in the Mobile markets as well. Some of the automation tools are listed in portfolio and here as well: * AutoBidder tool for Madbid like sites * Automation tools For all emails and social Bookmark sites * Social Bookmarking tools * Facebook Likes Automation * Webbased Versions of tools tailored to custom needs * Desktop apps tailored to customer needs * Proxy tools tailored to your requirements. A dedicated team that can literally deliver any project solution with high expertise. Please don't hesitate to contact us via freelancer. Satisfaction guaranteed solutions delivered all over the world. The Skill Set ranges from C# to PHP, Iphone to Andriod. We can deliver almost any solutions for your needs. We can also take up any type of work based on web design to desktop or mobile in the broad spectrum as we always strive to learn and perfect.

    PHP, Perl, Java, and JSP

  • pragmaticwiz Profile Picture


    Aberdeen,  United Kingdom

    I'm a programmer with experience writing network software, including custom HTTP clients and a library for web-crawling in Haskell. Great mathematics ability, and skilled with Python, Ruby, C, and Lisp.

    PHP, C Programming, Java, and Javascript

  • stafa Profile Picture


    Larache,  Morocco

    when a job is done correctly everyone is satisfied: Freelancer, Employer,....

    PHP, Perl, C Programming, and Java

  • pyDMB Profile Picture


    Maia,  Portugal

    2007 Major in Computer Science 2008 Master's Degree in Computer Systems and Networks Engineering 18 months work experience on the largest engineering conglomerate in Europe on its healthcare branch. 5 years work experience on a top multinational European information technology and defense systems company.

    Java, XML, Python, and Visual Basic

  • nodebench Profile Picture


    kerala,  India

    Service providers for Process / Office automation, Shop floor management, Data conversion , Data extraction and anything which require D.R.Y policy.

    Python, .NET, Linux, and Data Processing

  • shikopa Profile Picture


    Brooklyn,  United States

    A Software Developer with over 6 years of professional experience. My experience includes back-end development with Python and Scala, VoIP applications, database management, billing systems, software testing and hardware testing.

    Java, Javascript, Python, and Visual Basic

  • andriy3s Profile Picture


    Ternopil,  Ukraine

    I'll develop smart application for you.

    PHP, Javascript, Python, and Delphi

  • SyncMe Profile Picture


    Bangalore,  India

    Group of professionals looking to help others with quality products for affordable prices

    C Programming, Java, Python, and Android

  • dcbindaas Profile Picture


    Noida,  India

    Software Engineer: Skills Set: C, C++, Data Structure, Python, Embedded C and Linux

    C Programming, Javascript, XML, and Python

  • zigler Profile Picture


    Hangzhou,  China

    have employed by and expert of the search engine backend and internet ads.

    C Programming, Java, Javascript, and Python