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 9ccc443 commit 520d4a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

def scrape_details(url)
document = Nokogiri::HTML(open(url))

document.css('tbody tr').each do |row|
# Tagesordnungspunkt und dessen Beschreibung
top_link = row.css('td.tonr a').first
top_id = top_link['href'][/TOLFDNR=(\d+)/, 1]
top_description = row.css('td.tobetreff a').text.strip # Betreff des Tagesordnungspunkts
top_description = row.css('td.tobetreff div a').text.strip # Korrektur hier für Betreff des Tagesordnungspunkts

# URL für Tagesordnungspunkt-Details
top_url = "https://www.sitzungsdienst-schenefeld.de/bi/to020_r.asp?TOLFDNR=#{top_id}"
Expand Down Expand Up @@ -72,5 +72,3 @@ def scrape_calendar_data(year, month)

# Beispiel: Daten für April 2024 scrapen
scrape_calendar_data(2024, 4)


0 comments on commit 520d4a3

Please sign in to comment.