Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

34 lines (19 loc) · 1.06 KB

Newsletter Generation Scripts

Purpose

These scripts turn raw HTML from a Google Doc into stripped-down HTML and text which can be pasted into CiviCRM, as described at wiki.occupy.net.

Requirements

Python 2.7 and BeautifulSoup

Usage

cat sample-raw.html | ./html-sanitize.py > newsletter.html
cat sample-raw.html | ./html-strip.py > newsletter.txt

Or just:

./docs-to-civi.sh sample-raw.html

Sample CiviCRM Email Collection

Purpose

Sample code for collecting emails on an arbitrary site and posting them to the CiviCRM instance at OccupyWallStreet.net.

Requirements

jQuery

Usage

Copy the code from post-to-civi.html. Replace the profileId and groupId in the Javascript with the appropriate values from Civi. Paste the code into the desired place in the source of your website.