Scraped HTML is not written at the beginning of text file.
Posted
by karikari
on Stack Overflow
See other posts from Stack Overflow
or by karikari
Published on 2010-04-22T02:05:54Z
Indexed on
2010/04/22
2:33 UTC
Read the original article
Hit count: 344
html
Currently, I'm scraping the HTML code of a page, and writing it to a text file.
My problem is, why must there be empty spaces or empty lines at the beginning? The HTML codes written to the txt file do not seem to start at the beginning of the text file. This means that the '<' is not located at the position 0 of the txt file.
After a few runs, my HTML is always written a few lines down inside the text file.
Can anyone tell me why?
© Stack Overflow or respective owner