Dibatalkan

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

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

Kemahiran: Python

Lihat lebih lanjut: 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

Tentang Majikan:
( 91 ulasan ) Nicosia, Cyprus

ID Projek: #4074661

24 pekerja bebas membida secara purata $114 untuk pekerjaan ini

bksriharsha

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

$300 USD dalam 5 hari
(11 Ulasan)
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 Lagi

$200 USD dalam 14 hari
(20 Ulasan)
5.4
srinichal

I am an expert in python and can deliver the project

$180 USD dalam 5 hari
(14 Ulasan)
4.9
RotorProgrammer

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

$100 USD dalam 2 hari
(15 Ulasan)
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 dalam 2 hari
(6 Ulasan)
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 dalam sehari
(8 Ulasan)
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 Lagi

$100 USD dalam 2 hari
(2 Ulasan)
3.4
kommandant

i can help

$150 USD dalam 2 hari
(1 Ulasan)
2.4
andriy3s

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

$100 USD dalam 2 hari
(4 Ulasan)
2.3
hddh

I can do it.

$80 USD dalam 3 hari
(3 Ulasan)
2.1
nodebench

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

$65 USD dalam 3 hari
(1 Ulasan)
1.4
lokeshk9936

Hi, This is pretty straightforward. I will use Regular Expressions for matching. Please see PM

$120 USD dalam sehari
(0 Ulasan)
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 Lagi

$40 USD dalam 2 hari
(0 Ulasan)
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 dalam 250 hari
(0 Ulasan)
0.0
aarintech

i can help you on this.

$50 USD dalam 3 hari
(0 Ulasan)
0.0
zigler

Dear sir, I'm an experienced python developer. Please check PMB for details.

$80 USD dalam 2 hari
(0 Ulasan)
0.0
dcbindaas

I have experience in Python scripting. This problem is understandable to me.

$119 USD dalam 5 hari
(0 Ulasan)
0.0
SyncMe

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

$199 USD dalam 3 hari
(0 Ulasan)
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 Lagi

$75 USD dalam 2 hari
(0 Ulasan)
0.0
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 dalam sehari
(0 Ulasan)
0.0