Long Haul

Parsing File Sizes With Python

June 14, 2018 | 2 Minute Read

Lorem ipsum thor smash liege-bastogne-liege landbouwkrediet ombregt krabbe, rouleur derby is for lovers bonk giro gilbert bidon. Driedaagse de panne-koksijde monte paschi eroica, nevele gimondi berendries off the back cassette tenbosse.

Bahamontes lanterne rouge normandie belgium. Fred paris-nice arrivere, for omnium commissaire ronde van vlaanderen horizontally stiff but vertically compliant muur, valkenberg jens paris-roubaix. Meyrueis belleville cavendish bianchi, rochefort echelon in soigneur ten dam omloop het volk, bettini aerts! Tour de mont aigoual cat among the pigeons rekelberg omloop het nieuwsblad paris-nice, dwars door vlaanderen coppi the colnago knockteberg anduze.

Fig1. - This is an example figcaption
<figure>
	<img src="/assets/img/touring.jpg" alt=""> 
	<figcaption>Fig1. - This is an example figcaption</figcaption>
</figure>
#=> prints 'Hi, Tom' to STDOUT.

$ ls
Applications    Desktop    Downloads    Movies    Pictures    Code    Documents    Library    Music    Public
$ cd Code
$ mkdir m4aSizecalc
$ cd m4aSizecalc/
m4aSizecalc $ virtualenv venv
New python executable in /Users/username/Code/m4aSizecalc/venv/bin/python
Installing setuptools, pip, wheel...done.
m4aSizecalc $ source venv/bin/activate
(venv) m4aSizecalc $ pip install requests
Collecting requests
....
....
Successfully installed certifi-2018.4.16 chardet-3.0.4 idna-2.7 requests-2.19.0 urllib3-1.23

(venv) m4aSizecalc $ python
Python 2.7.10 (default, Oct  6 2017, 22:29:07) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> url = "https://mmj-live.s3-accelerate.amazonaws.com/assets/music_file/043e9b81-5045-11e8-babf-02fe9cf35e65.m4a" 
>>> r = requests.get(url)
>>> print len(r.content)
3887513
>>> exit()

Kaperij lanterne rouge musette rund um koln bruges thor smash, geraardsbergen riis petacchi molteni pedaling squares. Virenque vande velde, valkenberg gutter pantani parcours gaul domestique, tilford campagnolo around madone. Bruyneel criterium ritte, gorgeous george the trousselier feed zone bruges nokere koerse, parcours gilbert garin? Anquetil valkenberg bettini cat among the pigeons.

Campagnolo the hors delai de wolf as the toto turns venga venga venga, sanchez nys. Pantani hell of the north oude kwaremont nitto koppenberg, tiegemberg van steenbergen lombardie flamme rouge lemond e3 prijs vlaanderen.

Planckaert berg ter stene freire gorgeous george in rouleur derby, vaughters fabianese omloop het volk rouleur play rouleur derby. Bottechia petacchi, milan-san remo van summeren off the back cutters the cassette.

Nyvelocity pyrenees vande velde merckx. La fleche wallonne fixie pau, with muur hors categorie boonen aerts operacion puerto, topsport vlaanderen pereiro randonneur. This greek text is produced by rouleur derby, almost certainly the best fantasy cycling game in the world snob trousselier col du galibier, flanders venga venga venga suitcase of courage cutters kolobnev molenberg.