Firefox seems to beautify HTML?

Asked by At

I am trying to make a small crawler app. So I am constantly looking into the code of page inside of Firefox and I download the same page using urllib inside of python.

Sample URL: https://store.steampowered.com/search/?term=arma 3

And I checked using two separate libraries of python. Same result. File saved by python app looks different when saved on PC from one saved with browser.

Is it browser making the code more readable or server treats differently than standard browser application in a different way?

Thanks!

I tried saving using 2 different python libraries for accessing the web page.

I won't show the code here, because it's 200K of HTML without new lines.

The HTML code is with new lines when downloading page using normal browser.

0 Answers