#!/usr/bin/env ruby

require "nokogiri"
require "open-uri"

journal_url = "https://www.arte.tv/de/videos/RC-014085/arte-journal/"
journal_page = Nokogiri::HTML(open(journal_url))

# evening edition is last link
evening_edition_href = journal_page.css(".next-teaser__link")[-1].attr("href")

puts URI::join(journal_url, evening_edition_href)