Find Jobs
Hire Freelancers

Modify existing Python code

£10-20 GBP

Terminado
Publicado hace más de 7 años

£10-20 GBP

Pagado a la entrega
I have the code below which needs modification: I need the output file changing so it doesnt record the filenames of 0 finds: only the positive hits as listed. for info: the csv contains keywords, the script will search through a folder of files and record how many instances of each keyword appears and output to a text file. --- from os import walk; import os; import re; import sys if len([login to view URL]) != 2: print 'Please pass the path of the folder as command line argument.'; print 'Usage: ' + [login to view URL](__file__) + ' <folder>'; print 'Example: ' + [login to view URL](__file__) + ' /tmp'; [login to view URL](0); keywords_file = open('[login to view URL]', 'r+'); keywords_csv = [login to view URL](); [login to view URL](); keywords = [login to view URL](','); outfile = open('[login to view URL]', 'w'); for (dirpath, dirnames, filenames) in walk([login to view URL][1]): print '<<<' + dirpath + '>>>'; [login to view URL]('<<<' + dirpath + '>>>' + '\n'); for filename in filenames: # if [login to view URL]('.html') or [login to view URL]('.php'): print '[ ' + dirpath + '/' + filename + ' ]'; [login to view URL]('[ ' + dirpath + '/' + filename + ' ]' + '\n'); file = open(dirpath + '/' + filename); content = [login to view URL](); for keyword in keywords: list = [login to view URL](keyword, content); count = len(list); print keyword + ': ' + str(count); [login to view URL](keyword + ': ' + str(count) + '\n'); [login to view URL](); [login to view URL](); ---
ID del proyecto: 11834414

Información sobre el proyecto

13 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello. This one is quite simple. I'll do it in 1 hour if you provide me with your original (indented) code
£13 GBP en 1 día
5,0 (1 comentario)
2,0
2,0
13 freelancers están ofertando un promedio de £15 GBP por este trabajo
Avatar del usuario
Hi Sir/Madam, I'm expert in Python programming and I can hep You with this script. Best regards, Fejs.
£15 GBP en 1 día
5,0 (100 comentarios)
5,8
5,8
Avatar del usuario
Hey there, I am a professional Python software developer working at MNC. I am having expertise in Python. Ping me for discussion.
£20 GBP en 0 día
5,0 (21 comentarios)
4,7
4,7
Avatar del usuario
Heya. Interesting script. I notice there are different styles of code between the top and bottom. I have made the changes to your script and tested it. Waiting for your feedback.
£20 GBP en 0 día
5,0 (5 comentarios)
2,8
2,8
Avatar del usuario
Highly interested with your project and im ready to start right now. My completion rate is always 100% and I only bite what I can chew. knock me please . you will also find me in Skyp: pewqil
£100 GBP en 1 día
5,0 (6 comentarios)
0,0
0,0
Avatar del usuario
Hi, can you send me to code with indentation? And together with the files used in your code so I can debug on my side?
£18 GBP en 10 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I'm a master student majoring in data analytics with an expertise of python coding. I take class at night so I will be all available in daytime. Hope I can work for you. Thanks.
£15 GBP en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Contact me!
£10 GBP en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I have been working as a software developer for more than one and half year on python scripting and having good knowledge on algorithms and data structures and file handling
£19 GBP en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
i like python. I just finished learning multiprocessing module.
£12 GBP en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
Stafford, United Kingdom
5,0
10
Forma de pago verificada
Miembro desde mar 9, 2015

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.