Find Jobs
Hire Freelancers

Modify existing Python code

£10-20 GBP

Concluído
Publicado há mais de 7 anos

£10-20 GBP

Pago na 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 do Projeto: 11834414

Sobre o projeto

13 propostas
Projeto remoto
Ativo há 7 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello. This one is quite simple. I'll do it in 1 hour if you provide me with your original (indented) code
£13 GBP em 1 dia
5,0 (1 avaliação)
2,0
2,0
13 freelancers are bidding on average £15 GBP for this job
Avatar do Usuário
Hi Sir/Madam, I'm expert in Python programming and I can hep You with this script. Best regards, Fejs.
£15 GBP em 1 dia
5,0 (100 avaliações)
5,8
5,8
Avatar do Usuário
Hey there, I am a professional Python software developer working at MNC. I am having expertise in Python. Ping me for discussion.
£20 GBP em 0 dia
5,0 (21 avaliações)
4,7
4,7
Avatar do Usuário
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 em 0 dia
5,0 (5 avaliações)
2,8
2,8
Avatar do Usuário
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 em 1 dia
5,0 (6 avaliações)
0,0
0,0
Avatar do Usuário
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 em 10 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Contact me!
£10 GBP em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
i like python. I just finished learning multiprocessing module.
£12 GBP em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Stafford, United Kingdom
5,0
10
Método de pagamento verificado
Membro desde mar. 9, 2015

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.