DEV Community

Cover image for Les nouveaux flux Hifi HD de Radio France 📻
JV conseil 👨‍💻
JV conseil 👨‍💻

Posted on • Originally published at jv-conseil.net

Les nouveaux flux Hifi HD de Radio France 📻

Radio-France-Flux-HD-AAC-2
Radio-France-Flux-HD-AAC-1

Canaux : Stéréo
Fréquence d'échantillonnage : 48000 Hz
Bits par échantillon : 32
Enter fullscreen mode Exit fullscreen mode

France Musique

FiP

France Culture, France Inter

iTunes Playlist Import/Export in XML format

Fichier > Bibliothèque > Exporter la playlist... > Format XML

itunes-export-playlist

Télécharger le fichier et retirer le suffixe .txt du nom du fichier avant importation

Python Web Scraping

# coding=utf8
# the above tag defines encoding for this document and is for Python 2.x compatibility

import re

regex = r"(?P<link>http[^\"]*?/(?P<title>[^\.]*?)\.aac\?id=radiofrance)"

test_str = ("<copy-paste here HTML source code from: https://www.francemusique.fr>")

subst = ""

# You can manually specify the number of replacements by changing the 4th argument
result = re.sub(regex, subst, test_str, 0)

if result:
    print (result)

# Note: for Python 2.7 compatibility, use ur"" to prefix the regex and u"" to prefix the test string and substitution.
Enter fullscreen mode Exit fullscreen mode

France Musique .AAC link scraping on Regex101

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs