Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
BfB-Schenefeld committed Apr 21, 2024
1 parent 39de400 commit bc5c2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def scrape_calendar_data(year, month)
full_url = link ? "https://www.sitzungsdienst-schenefeld.de/bi/#{link}" : nil

if date_raw && full_url
date_parts = date_raw.match(/([A-Za-z]+)\s+(\d+)/)
date_parts = date_raw.match(/([A-Za-z]+)(\d+)/)
if date_parts
formatted_date = "#{date_parts[1]}, #{date_parts[2].rjust(2, '0')}.#{month.to_s.rjust(2, '0')}.#{year}"
puts "Datum: #{formatted_date}, URL: #{full_url}"
Expand Down

0 comments on commit bc5c2d4

Please sign in to comment.