Skip to main content

为 PyLadies 章节创建 MailChimp 模板的命令行工具

项目描述

芝加哥-pyladies-digest

从 MeetUp 和 Lanyard 中抓取数据的 Python 项目,用于为 PyLadies 电子邮件摘要生成 MailChimp 模板。

设置:

要使用,首先需要使用 API 密钥设置配置:

pyladies-digest --option config --meetup_keyvery_secret --mailchimp_key much_more_secret

抓取事件数据:

要为某个地点的活动抓取 MeetUp,需要提供一个类别 - http://www.meetup.com/meetup_api/docs/2/categories/ - 以及要在活动描述中查找的文本。

pyladies-digest –option scrape_events –location Chicago –text python –category 34

抓取会议数据:

要为即将举行的会议和会议 CFP 抓取挂绳,您可以提供会议主题和电话会议的查询。

pyladies-digest –option scrape_confs –calls python –topic python

生成模板:

要生成模板并将其发布到 MailChimp,需要提供月份、年份。默认情况下,电子邮件摘要将包括以下类别 - 职业、会议、活动、杂项和志愿者。如果您想更新摘要中使用的数据(以下数据格式注释),请提供相应类型的新数据文件的位置(例如 –career /Users/lm/desktop/career.csv)。

例子:

pyladies-digest –option template –template-name feb_digest –month Feb. –year 2016 –city Chicago –fb https://www.facebook.com/Chicago-PyLadies-303889346486875/?ref=aymt_homepage_panel

pyladies-digest –option template –template-name feb_digest –month February –year 2016 –city Chicago –data Career Conferences –fb https://www.facebook.com/Chicago-PyLadies-303889346486875/?ref=aymt_homepage_panel –tw http ://www.twitter.com/pyladieschicago

pyladies-digest –option template –template-name feb_digest –month Feb. –year 2016 –city Chicago –career /Users/lm/desktop/career.csv –misc /Users/lm/desktop/misceallaneous.csv –volunteer /Users/ lm/desktop/volunteer.csv

数据格式:

职业:标题,描述,contact_url,contact_text 会议:日期,名称,位置,url,cfp,cfp_url,cfp_deadline,fa,fa_url,fa_deadline 事件:日期,event_url,组,名称 杂项:文本,contact_url,contact_text 志愿者:文本,联系人网址,联系人文本

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

pyladies-digest-0.31.tar.gz (12.9 kB 查看哈希)

已上传 source