Hi tutors, aboard again after a long time. http://..._export.php?mehet=1 is a link which exports me some data in CSV correctly when I click on it in my browser. (It contains personal data, that's why I dotted.) I want to process it directly from Python, excluding the browser phase.
The following piece of code in Python 3.3 prints the first n-1 lines nicely, then the beginning of the last line truncated. I mean there are 12 fields in CSV and in the last line only 1.5 fields of them are displayed. I suspect some closing/caching error. In the first times it worked well but after a certain time it spoiled without PHP code being modified. I guess it may somehow be connected to quantity of lines. How could I read the last line? Thx, Péter from urllib.request import urlopen x=urlopen('http://..._export.php?mehet=1') y=x.read().decode('windows-1250') print(y) Output looks like this: 159;Name of customer159;x...@gmail.com;phone;22;0;0;0;1;0;0;2013-02-09 20:20:26 160;Name of customer160;y...@gmail.com;phone;14;0;0;1;0;0;0;2013-02-09 20:38:16 161;Name of c
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor