Skip to main content

python-hcalendar is a basic hCalendar parser

Project description

Basic hCalendar Parser

- isodate []
- Beautiful Soup 4 []

Install all dependencies by using the following commands:

pip install isodate
pip install BeautifulSoup4

Install the parser by cloning the source from

git clone git:// hcalendar

Basic Example
The hCalendar class accepts file-like objects and strings, basically anything supported by BeautifulSoup

from hcalendar import hCalendar

html = """<div class="vcalendar"><div class="vevent">
<a class="url" href="">
<span class="summary">Web 2.0 Conference</span>:
<abbr class="dtstart" title="2005-10-05">October 5</abbr>-
<abbr class="dtend" title="2005-10-07">7</abbr>,
at the <span class="location">Argent Hotel, San Francisco, CA</span>

hcal = hCalendar(html)
for cal in hcal:
for event in cal:
print event.url
print event.summary
print event.dtstart
print event.dtend
print event.location

HTML source code taken from []( Output will look like this:
Web 2.0 Conference
2005-10-05 00:00:00
2005-10-07 00:00:00
Argent Hotel, San Francisco, CA

- Implement support for hCard contacts and attendees
- Implement support for geo locations
- Maybe support for other microformats?

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-hcalendar, version 0.1.2dev
Filename, size File type Python version Upload date Hashes
Filename, size (10.6 kB) File type Source Python version None Upload date Hashes View
Filename, size python-hcalendar-0.1.2dev.win32.exe (206.6 kB) File type Windows Installer Python version any Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page