@pyelias/

Soundcloud aggregator thingy

Python

converting user url to RSS feed

fork
loading
Files
  • main.py
  • api.py
  • poetry.lock
  • pyproject.toml
  • requirements.txt
  • rss.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os

from api import API, parse_date

api = API(os.getenv("CLIENT_ID"))
print(api.get_tracks(4563922, 20))
for track in api.get_tracks_after(4563922, parse_date("2018-09-17T19:22:32Z")):
	print(track.title, track.created_at)

from rss import build_rss
print(build_rss([
	{"title": "item 1", "desc": "hi"},
	{"title": "item 2", "desc": "hi"},
], "hi", "a", "hi2"))