python - Why Pycharm print less than writing to a file? -


i testing following code, found output after "print" inconsistent text file. have set encoding "utf-8". bug? how fix?

import requests  url = "http://www.aastocks.com/tc/stocks/analysis/company-fundamental/financial-ratios?symbol=0001&period=4" r = requests.get(url) print r.content f = open("test.txt","w") f.write(r.content) 

there internal limit how many lines run console buffer can hold. limited 15k lines.

to increase limit, you'll have change idea.properties file , add key idea.cycle.buffer.size , adjust accordingly.

see this bug report solution detailed.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -