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 22, 2024
1 parent f8239bc commit 3d36a40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def scrape_top_details(top_url)
def scrape_vorlagen_details(vorlagen_url)
document = Nokogiri::HTML(open(vorlagen_url))
vorlagenbezeichnung = document.at_css('#header h1.title').text.strip
vorlagenprotokolltext = document.at_css('#mainContent').text.gsub(/\s+/, ' ').strip
vorlagenprotokolltext = document.at_css('#mainContent').text.strip.gsub(/\s+/, ' ')
puts "Vorlagenbezeichnung: #{vorlagenbezeichnung}"
puts "Vorlagenprotokolltext: #{vorlagenprotokolltext}"
end

# Startpunkt
# Start des Scraping-Prozesses
scrape_calendar_data(2024, 3)


Expand All @@ -117,5 +117,6 @@ def scrape_vorlagen_details(vorlagen_url)






0 comments on commit 3d36a40

Please sign in to comment.