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

Cancelled

Hi,

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.

Thanks,

Michael

Skills: Python

See more: python multiple line text, mp3 playlist, replace, python: get data, python mp3, python data, mp3 to text, i-tunes, armin, csv post, text selected, column text, csv text file, python csv text, line csv, replace files, digit part number, split mp3 files, replace file file, split csv file multiple files, python multiple, text file csv python, split line, number line project, split mp3

About the Employer:
( 91 reviews ) Nicosia, Cyprus

Project ID: #4074661

24 freelancers are bidding on average $114 for this job

bksriharsha

Hi , I am interested in taking this project. Please check my PMB for more details.

$300 USD in 5 days
(11 Reviews)
5.8
Blender3D

Hello. I've been working with Python professionally for about five years now and have substantial experience with natural language processing. For this project, I would probably tokenize all of the filenames and use ed More

$200 USD in 14 days
(20 Reviews)
5.4
srinichal

I am an expert in python and can deliver the project

$180 USD in 5 days
(14 Reviews)
4.9
RotorProgrammer

Hello. Please check details in the private message. Thanks.

$100 USD in 2 days
(15 Reviews)
4.7
RhynoProgramming

This is a simple text manipulation project. I can get this done quickly and professionally. The summary of the plan for action will be sent to your PMB.

$150 USD in 2 days
(6 Reviews)
4.5
NirvanaWebDev

Sir, this is not something that should cost over $100. I can handle this for you in no time and it will be to your utmost satisfaction. I will send you a basic outline of my plan of action.

$35 USD in 1 day
(8 Reviews)
3.5
MichaelSheldon

Hi, My approach to this problem would be to use a simple regular expression to match the three digit number, making an assumption of it being surrounded by non-alphanumeric characters (in your example data this app More

$100 USD in 2 days
(2 Reviews)
3.4
kommandant

i can help

$150 USD in 2 days
(1 Review)
2.4
andriy3s

Hi, I'm ready to work with this project. Check please additional information in PM. Thanks, Andriy

$100 USD in 2 days
(4 Reviews)
2.3
hddh

I can do it.

$80 USD in 3 days
(3 Reviews)
2.1
nodebench

if possible, Please clarify these doubts... please see PBM.

$65 USD in 3 days
(1 Review)
1.4
shikopa

This is a straightforward text processing job. I have enough experience to get this done within a day and provide you with the quality you are looking for.

$75 USD in 1 day
(0 Reviews)
0.0
pyDMB

This is a pretty basic task. The precise output you want is not 100% clear (there have been PMB questions asked about it though) but nevertheless it's a simple task.

$35 USD in 2 days
(0 Reviews)
0.0
stafa

I am very interested and ready to start. Please check the PM.

$70 USD in 3 days
(0 Reviews)
0.0
TheBaseMan

I am software developer with significant experience in Python (2.7.3 / 3.3.0) development. I will describe process summary, as you requested, in PM. If you would like to see some examples of my work, I would be more th More

$75 USD in 2 days
(0 Reviews)
0.0
pragmaticwiz

This is a very simple job that any python programmer could do quickly. I have sent you my proposal.

$30 USD in 1 day
(0 Reviews)
0.0
dembelija

Sir, there is a problem. You have few lines without 3-digit numbers, for example: Wezz Devall - Live at Brabanthallen in Den Bosch, The Netherlands (31.03.2012).cue near the end of file.

$250 USD in 250 days
(0 Reviews)
0.0
SyncMe

hi i can help you with this, please see the message for the rough logic i have

$199 USD in 3 days
(0 Reviews)
0.0
goncalopp

This looks interesting. I'd parse the numbers using regex and a couple of conditional matching for the Part 1/2. If it's needed, Levenhstein distance may also be used. As you can see by my test results, I'm an expe More

$40 USD in 2 days
(0 Reviews)
0.0
kiroh

I didn't find the playlist file. Anyway it sound simple enough! I think i will solve it using regular expressions to match the file names.

$128 USD in 2 days
(0 Reviews)
0.0