Download files using Python 3

Posted on Wed 18 January 2017 in python • 1 min read

To download files accessible over HTTP(S) generate their paths with more than bash, saving with Python 3 can be done as following

from urllib.request import urlretrieve
urlretrieve(url, local_filename)

Debugging with IPython shell

Posted on Mon 02 January 2017 in python • 1 min read

Debugging in Python is very easy with IPython, you don't need pdb or so, just do a simple

from IPython import embed

#Inside some functions
embed()

That's all.

Reference

See https://ipython.org/ipython-doc/3/api/generated/IPython.terminal.embed.html#IPython.terminal.embed.embed