Skip to content

WeAreOne is a radio station family hosted in Germany. Probably the most famous radio station is the TechnoBase.FM, but there are 6 more: ClubTime.FM, CoreTime.FM, HardBase.FM, HouseTime.FM, TeaTime.FM and TranceBase.FM. With this library You can access all 7 radio's tracklist.

License

Notifications You must be signed in to change notification settings

PoLaKoSz/WeAreOne.Scraper

Repository files navigation

WeAreOne.Scraper

Codacy Badge Tests Status Latest Stable Version Total Downloads License

WeAreOne is a radio station family hosted in Germany. Probably the most famous radio station is the TechnoBase.FM, but there are 6 more: ClubTime.FM, CoreTime.FM, HardBase.FM, HouseTime.FM, TeaTime.FM and TranceBase.FM. With this library You can access all 7 radio's tracklist.

Install

via NuGet

PM > Install-Package PoLaKoSz.WeAreOne.Scraper

Quick start

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

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

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

            var tracklist = weAreOne.TechoBase.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "TechoBase");


            tracklist = weAreOne.HouseTime.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "HouseTime");


            tracklist = weAreOne.HardBase.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "HardBase");


            tracklist = weAreOne.TranceBase.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "TranceBase");


            tracklist = weAreOne.CoreTime.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "CoreTime");


            tracklist = weAreOne.ClubTime.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "ClubTime");


            tracklist = weAreOne.TeaTime.Tracklist().GetAwaiter().GetResult();
            DisplayTracklist(tracklist, "TeaTime");

            Console.Read();
        }

        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");
        }
    }
}

About

WeAreOne is a radio station family hosted in Germany. Probably the most famous radio station is the TechnoBase.FM, but there are 6 more: ClubTime.FM, CoreTime.FM, HardBase.FM, HouseTime.FM, TeaTime.FM and TranceBase.FM. With this library You can access all 7 radio's tracklist.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages