Find Jobs
Hire Freelancers

Modify existing Python code

£10-20 GBP

Abgeschlossen
Veröffentlicht vor mehr als 7 Jahren

£10-20 GBP

Bezahlt bei Lieferung
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](); ---
Projekt-ID: 11834414

Über das Projekt

13 Vorschläge
Remote Projekt
Aktiv vor 8 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hello. This one is quite simple. I'll do it in 1 hour if you provide me with your original (indented) code
£13 GBP in 1 Tag
5,0 (1 Bewertung)
2,0
2,0
13 Freelancer bieten im Durchschnitt £15 GBP für diesen Auftrag
Avatar des Nutzers
Hi Sir/Madam, I'm expert in Python programming and I can hep You with this script. Best regards, Fejs.
£15 GBP in 1 Tag
5,0 (100 Bewertungen)
5,8
5,8
Avatar des Nutzers
Hey there, I am a professional Python software developer working at MNC. I am having expertise in Python. Ping me for discussion.
£20 GBP in 0 Tag
5,0 (21 Bewertungen)
4,7
4,7
Avatar des Nutzers
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 in 0 Tag
5,0 (5 Bewertungen)
2,8
2,8
Avatar des Nutzers
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 in 1 Tag
5,0 (6 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 10 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 2 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Contact me!
£10 GBP in 2 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 in 3 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
i like python. I just finished learning multiprocessing module.
£12 GBP in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED KINGDOM
Stafford, United Kingdom
5,0
10
Zahlungsmethode verifiziert
Mitglied seit März 9, 2015

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.