test date parsing

Subbranch
Al-P 3 years ago
parent 1493425938
commit d165f8ed40
  1. 0
      src/Kalender/EFA_scrape_csv_1
  2. 36
      src/Kalender/EFA_scrape_csv_2
  3. 10
      src/Kalender/scrape_EFA_online.py
  4. 3
      src/Mail/parser/ICSC.py

@ -0,0 +1,36 @@
titel,datum,event_url,ort
CASE University Leadership UK Study Tour,19-22 February 2019,https://www.case.org/Conferences_and_Training/University_Leadership_UK_Study_Tour_x75304.html,"Oxford, London, & Warwick, UK"
Volunteer & Community Fundraising 2019 (IoF),25 February 2019,https://www.institute-of-fundraising.org.uk/events-and-training/events/volunteercommunity-fundraising-conference-2019/,"London, UK"
Cultural Sector Network National Conference,12 March 2019,https://www.institute-of-fundraising.org.uk/news/programme-announced-iof-csn-national-conference-2019/,"London, UK"
Digital Fundraising Conference 2019 (IoF),25 March 2019,https://www.institute-of-fundraising.org.uk/events-and-training/events/digital-fundraising-conference-2019/,"London, UK"
CASE Spring Institute in Educational Fundraising,29 April - 03 May 2019,https://www.case.org/Conferences_and_Training/Spring_Institute_in_Educational_Fundraising_2019.html,"Loughborough, UK"
Insamlingsforum,14-15 May 2019,https://insamlingsforum.se/,"Stockholm, Sweden"
European Foundation Centre Conference,22-24 May 2019,https://www.efc.be/aga/2019-paris/,"Paris, France"
Conference on Fundraising in Arts and Culture,12 June 2019,https://www.fundraising.at/VERANSTALTUNGEN/FachtagungKulturfundraising/tabid/1219/language/de-DE/Default.aspx#English,"Vienna, Austria "
European Fundraising School with Eva Aldrich & Alex Buchinger,25-28 June 2019,http://school.fundraising.at,"Vienna, Austria "
Legal Barriers to Cross-Border Giving,03 July 2019,http://ernop.eu/conference2019/pre-conference-event/,"Basel, Switzerland"
Communicating with Older Generations,12 July 2019,https://www.institute-of-fundraising.org.uk/events-and-training/events/communicating-with-older-generations/?preview=true,"London, UK "
5th Conference for Fundraising for Local Authorities,10 September 2019,https://www.fundraisers.fr/fundraising-agenda/5eme-conference-mecenat-territorial-collectivites,"Paris, France"
IFC 2019,15-18 October 2019,https://resource-alliance.org/events/ifc/,"Noordwijk, Netherlands"
CEE Fundraising Conference,09-11 October 2019,https://www.ceefundraising.org,"Bratislava, Slovakia"
Vienna: Congress on Fundraising in Science and Higher Education,05 November 2019,," Vienna, Austria "
FAB Conference on Segmentation of Donors,28 November 2019,https://www.fundraisersalliancebelgium.be/bijeenkomsten/detail/14/conference-on-segmentation-of-donors/about#.XShpdZNKho5," Brussels, Belgium "
Conference on Volunteering Management and Trends in Volunteering,03 December 2019,,"Vienna, Austria"
Legavision Conference,21 February 2019,mailto:theo@goednalaten.nl,"Prague, Czech Republic"
3rd NPO Communication Summit,12 March 2019,http://communication.fundraising.at,"Vienna, Austria"
14th Fundraising Conference for Higher Education & Research,20-21 March 2019,https://www.fundraisers.fr/fundraising-enseignement-superieur-recherche-conference,"Paris, France"
Fundraising in the faith-based sector,01 April 2019,https://www.fundraisers.fr/fundraising-agenda/affconfessionnel-10eme-conference-de-collecte-de-fonds-pour-secteur-confessionnel,"Paris, France"
Spendentag 2019 ,07 May 2019,https://www.spendentag.at,"Vienna, Austria"
Slovak-Czech Fundraising Conference,17 May 2019,https://www.skczfundraising.org,"Bratislava, Slovakia"
XIX Fundraising Congress in Spain,04-06 June 2019,https://www.congresofundraising.org/,"Madrid, Spain"
SwissFundraisingDay,20 June 2019,https://swissfundraising.org/events/swissfundraisingday-2019/,"Berne, Switzerland"
18th Francophone Fundraising Seminar,25-27 June 2019,https://www.fundraisers.fr/fundraising-agenda/seminaire-francophone-de-collecte-de-fonds,"Paris, France"
National Fundraising Convention,01-03 July 2019,http://www.fundraisingconvention.uk,"London, UK"
9th Int'l Research Conference (ERNOP),04-05 July 2019,http://ernop.eu/conference2019/,"Basel, Switzerland"
CASE Europe Annual Conference,27-29 August 2019, https://www.case.org/programme,"Birmingham, UK "
Norwegian Fundraising Conference,12 September 2019,https://www.innsamlingsradet.no/,Norway
FAB Conference on Major Donors & Legacies ,19 September 2019,https://www.fundraisersalliancebelgium.be/bijeenkomsten/detail/13/fab-conference-on-major-donors-and-legacies/about#.XShpKZNKho5,"Brussels, Belgium"
26th Austrian Fundraising Congress,07-09 October 2019,https://www.fundraisingkongress.at," Vienna, Austria "
CEE Leaders of Tomorrow,27 October - 01 November 2019,https://www.ceeleadership.org,"Modra-Piesok, Slovakia"
Fundraising in the Cultural Sector,27-28 November 2019,https://www.fundraisers.fr/fundraising-agenda/affculture-10eme-conference-de-fundraising-pour-secteur-de-culture,"Paris, France "
2nd Edition of Giving Tuesday in France,03 December 2019,https://givingtuesday.fr/,"Paris, France"

@ -1,6 +1,7 @@
from bs4 import BeautifulSoup
import requests
import csv
from dateutil.parser import parse
source = requests.get('https://efa-net.eu/events/events-calendar').text
soup = BeautifulSoup(source, 'lxml')
@ -15,8 +16,13 @@ for event in soup.find_all("div", class_="column mcb-column one column_list"):
print(titel)
datum =event.find("div", class_="desc").p.b.text
print(datum)
# print(datum)
#in this example date parsing causes problem "ValueError: ('Unknown string format:', '29 April - 03 May 2019')"
# dt = parse(datum, fuzzy=True)
# print(dt)
ort =event.find("div", class_="desc").p.i.text
print(ort)

@ -7,9 +7,6 @@ from bs4 import BeautifulSoup
A parser to get events from ICSC out of their e-mails
'''
'''
A parser to get events of ICSC out of their e-mails
'''

Loading…
Cancel
Save