Skip to content

Instantly share code, notes, and snippets.

View sven337's full-sized avatar

Sven337 sven337

  • http://perso.aquilenet.fr/~sven337/
View GitHub Profile
@sven337
sven337 / disqus-to-json.php
Created February 5, 2020 20:16 — forked from evert/disqus-to-json.php
Convert Disqus export to a JSON file
<?php
$xml = simplexml_load_file('php://stdin');
$threads = [];
$posts = [];
$userMap = [
'evertp' => [
'url' => 'https://evertpot.com',