forked from mkwiatkowski/pythoscope
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pyatom project for gathering some more metrics.
- Loading branch information
1 parent
6b29377
commit 94186f5
Showing
6 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pyatom import AtomFeed | ||
import datetime | ||
|
||
feed = AtomFeed(title="My Blog", | ||
subtitle="My example blog for a feed test.", | ||
feed_url="http://example.org/feed", | ||
url="http://example.org", | ||
author="Me") | ||
|
||
# Do this for each feed entry | ||
feed.add(title="My Post", | ||
content="Body of my post", | ||
content_type="html", | ||
author="Me", | ||
url="http://example.org/entry1", | ||
updated=datetime.datetime.utcnow()) | ||
|
||
print feed.to_string() |