On 11.4.2011 11:18, stefaan wrote:
I know how to import CSV files, but how do I import a textfile and parse
all lines. I don t want to all<HTML>,<BODY> and rest of tags in my
source page to be used, I just want to parse the whole file line by line.
It's not entirely clear to me what you want to accomplish (what text
file are we talking about?).
Perhaps you can find some inspiration here:
http://gregallard.com/using-beautiful-soup-for-screen-scraping/
I thought that the easiest way of doing this would like this:
1) I log in to the bank and display the abstract of my account
2) I save the HTML page as a HTML page
3) upload that page to web2py
4) web2py parses that file and saves data into a database
This way my application doesn´t have to know have to log into the bank.
Kenneth