From 68fe8e24e20c566599a1a73077f5e2cf7e1dbe66 Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 22 Feb 2019 19:41:32 +0100 Subject: [PATCH 1/2] [fix] Add railsgirl --- agendas/be.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/agendas/be.py b/agendas/be.py index 2c8935c..c515f22 100644 --- a/agendas/be.py +++ b/agendas/be.py @@ -1362,3 +1362,21 @@ def ko_lab(): # generic_facebook("Ko-Lab", "HS.ko.lab", background_color="#1ABC9C", text_color="black", predefined_tags=["hackerspace","makerspace"], url="https://ko-lab.space") # generic_facebook_page("HS.ko.lab") + +@event_source(background_color="#D3360B", text_color="white", predefined_tags=["railsgirl"], url="http://railsgirls.com/") +def rails_girl(): + """ +

Learn sketching, prototyping, basic programming and get introduced to the world of technology.

+ """ + events = json.loads(urlopen("http://railsgirls.com/events/events.json").read()) + for ev in events: + name = "Rails Girl" + tags = ["railsgirl"] + yield { + 'title': name, + 'start': ev.startDate, + 'end': ev.endDate, + 'url': ev.eventUrl, + 'location': ev.location, + 'tags': tags + } From 607d7772dac6c98e92cdec4e8aeb12fa439fbe6b Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 24 Feb 2019 02:19:47 +0100 Subject: [PATCH 2/2] add needed import --- agendas/be.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agendas/be.py b/agendas/be.py index c515f22..a9f4288 100644 --- a/agendas/be.py +++ b/agendas/be.py @@ -6,6 +6,8 @@ import requests import feedparser import dateparser +import json +import urlopen from bs4 import BeautifulSoup from bs4.element import NavigableString