Giter VIP home page Giter VIP logo

polakosz / musicfm.hu Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 877 KB

http://musicfm.hu/ WAS (2012 - 2019) one of the most popular radio station in Hungary. This is a .NET Standard 2.0 library to access the Timeline, every MusicKiller DJ's tracklist and the two chart (TOP 20 and TOP 50).

License: MIT License

C# 100.00%
musicfm wrapper netstandard net standard api scraper tested documented

musicfm.hu's Introduction

MusicFM.hu

MusicFM.hu is the one of the most popular radio station in Hungary. This is a .NET Standard 2.0 library to can access the Timeline, every MusicKIller DJ's tracklist and the two chart (TOP 20 and TOP 50).

Install

via NuGet

PM > Install-Package MusicFM.hu

Quick start

That's all You need and can use with this library. Copied from the sample project:

using PoLaKoSz.MusicFM;
using PoLaKoSz.MusicFM.Models;
using System;
using System.Collections.Generic;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var musicFM = new MusicFM();

            var MKdjTracklist = musicFM.MusicKillers.TracklistFrom.Antonyo().GetAwaiter().GetResult();
            DisplayTracklist(MKdjTracklist, "MK DJ Antonyo");


            var timeLine = musicFM.HomePage.Timeline().GetAwaiter().GetResult();
            DisplayTracklist(timeLine, "Timeline");


            var top20Tracks = musicFM.Charts.Top20.All().GetAwaiter().GetResult();
            DisplayTracklist(top20Tracks, "TOP 20");


            var top50Tracks = musicFM.Charts.Top50.All().GetAwaiter().GetResult();
            DisplayTracklist(top50Tracks, "TOP 50");

            Console.Read();
        }

        private static void DisplayTracklist(List<Track> tracklist, string name)
        {
            Console.WriteLine(name);

            for (int i = 0; i < tracklist.Count; i++)
            {
                var track = tracklist[i];

                Console.WriteLine($"\t#{i,3}\t{track.Artist} - {track.Name}");
            }

            Console.WriteLine("\n");
        }

        private static void DisplayTracklist(List<Music> tracklist, string name)
        {
            Console.WriteLine(name);

            for (int i = 0; i < tracklist.Count; i++)
            {
                var track = tracklist[i];

                Console.WriteLine($"\t#{i,3}\t{track.Name}");
            }

            Console.WriteLine("\n");
        }
    }
}

musicfm.hu's People

Contributors

polakosz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.