Skip to content

Instantly share code, notes, and snippets.

View kxrz's full-sized avatar
👋

Florent B. kxrz

👋
View GitHub Profile
@kxrz
kxrz / Readme.md
Last active June 1, 2026 15:10
Markdown to ePub

Markdown to ePub Converter

Python script to convert your Markdown files to ePub with elegant and professional formatting.

Huge update here:

🔗https://github.com/kxrz/md_to_epub

Code below still works fine.


@kxrz
kxrz / airtable-to-excel.py
Created November 4, 2024 18:14
Airtable vers Excel
# pip install requests pandas openpyxl
import requests
import pandas as pd
# Variables à personnaliser
API_KEY = 'votre_cle_api_airtable'
BASE_ID = 'votre_base_id'
TABLE_NAMES = ['table1', 'table2', 'table3'] # Remplacez par les noms de vos tables
@kxrz
kxrz / scrap-text.py
Created August 26, 2024 16:02
Analyse de contenus avec un script Python et ChatGPT
import requests
from bs4 import BeautifulSoup
from langdetect import detect, DetectorFactory
from markdownify import markdownify as md
import unicodedata
# Fix seed for language detection to ensure reproducibility
DetectorFactory.seed = 0
# Fonction pour extraire les URLs du sitemap
@kxrz
kxrz / GoogleMyMaps-KML-KMZ-JSON.py
Last active June 26, 2024 08:56
Ce script télécharge un fichier KML ou KMZ à partir d’un lien de partage Google MyMaps, extrait les Points of Interest (POIs), et convertit les données en JSON en enregistrant le fichier avec un nom pertinent.
import xmltodict
import json
import requests
import zipfile
import io
import os
def extract_pois(kml_dict):
pois = []
document = kml_dict.get('kml', {}).get('Document', {})
@kxrz
kxrz / GoogleMyMaps-to-JSON.py
Created June 25, 2024 10:40
De quoi transformer un lien de partage d'une carte MyMaps (KML ou KMZ) au format JSON.
import xmltodict
import json
import requests
import zipfile
import io
import os
def extract_pois(kml_dict):
pois = []
document = kml_dict.get('kml', {}).get('Document', {})
@kxrz
kxrz / GoogleMyMaps-KMLtoJSON.py
Last active June 25, 2024 10:23
De quoi transformer une MyMaps en JSON générique.
import xmltodict
import json
def extract_pois(kml_dict):
pois = []
document = kml_dict.get('kml', {}).get('Document', {})
# Handle 'Folder' containing multiple 'Placemark'
folders = document.get('Folder', [])
if isinstance(folders, dict): # Ensure folders is a list
@kxrz
kxrz / ScrapText.py
Created June 19, 2024 15:57
Scrapping text from sitemap.xml
import requests
from bs4 import BeautifulSoup
from langdetect import detect, DetectorFactory
from markdownify import markdownify as md
import unicodedata
# Fix seed for language detection to ensure reproducibility
DetectorFactory.seed = 0
# Fonction pour extraire les URLs du sitemap

-online 4u adipex advicer baccarrat blackjack bllogspot booker byob car-rental-e-site