ffmpeg -i https://site/playlist.m3u8 -c copy out.mp3
seg-1-a1.ts
seg-2-a1.ts
seg-3-a1.ts
и так далее
python -m ensurepip --help
--altinstall Make an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).
dka@desktop ~ % http -vv -f POST https://rand.by/ajax.php method=getImage
POST /ajax.php HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 15
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Host: rand.by
User-Agent: HTTPie/2.1.0
method=getImage
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Tue, 12 May 2020 15:27:00 GMT
Server: nginx/1.10.3 (Ubuntu)
Transfer-Encoding: chunked
{
"image": "http://farm66.static.flickr.com/65535/49887294892_1fc5852dd3_b.jpg"
}
my_list = ['apple', 'banana', 'grapes', 'pear']
for c, value in enumerate(my_list, 1):
print(c, value)
# Output:
# 1 apple
# 2 banana
# 3 grapes
# 4 pear
tokenize.open(filename)
fetch("http://127.0.0.1:5000")
return render_template('cart.html', session=session)
И еще вопрос, в пхп можно спокойно посмотреть, что находится в сессии, вызвав print_r($_SESSION), в питоне есть что-то аналогичное?
sensor = Sensor.query.filter_by(id=sensor_id).first_or_404()
form = EditSensorForm(obj=sensor)