Friday, September 7. 2007Converting CSV files to QIFTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Bedankt voor de script. Maar hoe kan ik deze script compileren naar een werkend programma? Ik gebruik openSUSE 10.3 en ben een newbee in linux bedankt Download het bestand vanaf http://jelmer.vernstok.nl/releases/postbank.nl2qif.py en draai dan vanaf de command-line iets als: $ python postbank.nl2qif.py < CSV-bestand > QIF-bestand Dank; handig script. Vorig jaar ook al even gezocht of er iemand was die een script had gebakken. Toen kon ik er nog geen vinden, nu wel :-) Thanks for the script. I use it for importing Postbank data into jGnash. I also will modify this for use with SNS Bank transaction exports. Definitely a time saver. Hey thnx! Ik had dit net nodig voor een online administratie site. Zie http://www.clearcheckbook.com/ Enige wat ik nog moest aanpassen was het formaat van de getallen. Amerikanen gebruiken de punten en komma's omgedraaid.. I also have Postbank and needed to convert to qif format. Also had to change the comma and dot for using the Cha-Ching software import. Don't know much about Pyhton scripting, but this replace method works: if l[5] == 'Bij': print 'T%s' % l[6].replace(",",".") # amount elif l[5] == 'Af': print 'T-%s' % l[6].replace(",",".") # amount Thanks for the script! Bedankt Jelmer voor het aanbieden van deze script! Kan je me helpen om het aan de praat te krijgen? Het lijkt te blijven hangen op de regel "header = rows.next()". Ik gebruik Python 2.5 op Ubuntu. Bedankt alvast! Ik had deze foutmelding eerst ook, maar was vergeten de < en > te plaatsen (zie reactie 1.1.) ik heb hetzelfde probleem als serge, heeft Jelmer een oplossing? ben een beginnend ubuntu gebruiker. Hoi Serge, Het script leest uit standaard invoer, dus je moet het bijv als volgt gebruiken: $ python csv2qif.py < reknr.csv > reknr.qif Nice python script! I adapt it quite easily to work with my accout at Banca Marche in Italy !/usr/bin/pythonimport csv, sys rows = csv.reader(sys.stdin) header = rows.next() assert header == ['Intestatario', 'ABI', 'CAB', 'Conto', 'Operazione', 'Valuta', 'Importo', 'Causale', 'Descrizione'] print '!Type:Bank\n' for l in rows: if "/" in l[5]: p = l[5].split("/") print "D%s/%s/%s" % (p[1], p[0], p[2]) print 'T%s' % l[6] # amount print 'P%s' % l[8] # payee / description print '^\n' # end transaction Is this licensed under GPL? I want to make changes to adapt to my bank and release the code. Maybe a better way would be to make Google Code / SF project for this? Yes, please consider it licensed under the GPL. However, I think the appropriate solution would be to have native import support for CSV files in gnucash rather than starting a completely separate project for this sort of script. Thanks so much for writing this! I was working to convert CSV files to QIF format on my Mac, and your script here gave me a great starting point to work from. Thanks again! Uitgaande van je script heb ik een programmaatje geschreven dat Post Bank bestanden inleest, en op basis van een aantal ingevoerde regels de transacties in categorieen stopt. zo is het bijvoorbeeld mogelijk om alles waarin C. 1000 staat te laten categoriseren als Uitgaven:Eten, voor het invoeren in gnucash. ALs je interesse hebt, laat het me weten. Inmiddels is postbank ING geworden maar de csv structuur van de download lijkt mij dezelfde. Toch krijg ik helaas een foutmelding en weet niet wat ik daar mee aan moet: File "postbank.nl2qif.py", line 14 ++ ['Tegenrekening', 'Code', 'Af Bij', 'Bedrag (EUR)'] ^ IndentationError: unexpected indent Help aub! Unexpected indent. This line of code has more spaces at the start than the one before, but the one before is not the start of a subblock (e.g. if/while/for statement). All lines of code in a block must start with exactly the same string of whitespace. Met andere woorden, zorg ervoor dat regel 14 op dezelfde kolom als de regel erboven met 'assert'. |
LinksCalendar
QuicksearchBlogroll• Stefan Weichinger • Vloris Kruisselbrink • Sander Koning • Wouter Bolsterlee • Tim Potter • Andrew Bartlett • Kristian Rietveld • Jerry Carter • Alexander Bokovoy • Martin Pool • Robert Collins • Kurt Pfeifle • Planet Revisioncontrol • Planet A-eskwadraat • Planet Samba • Planet Flood • Sjoerd Hemminga • Olivier Tieleman • Martijn van Steenbergen • Wilmer van der Gaast • Tijmen Ruizendaal • Jelle Helming • Szilveszter Farkas • Thijs Kinkhorst • Joachim Schipper CategoriesWeekly top artists
|
||||||||||||||||||||||||||||||||||||||||||