-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (43 loc) · 1.38 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from feed_manager import create_feed
from fedoraplanet_parser import fedora_planet
from planet_gnhome_parser import gnhome_planet
from planet_openstack import openstack_planet
from planetpython_parser import python_planet
fedora_planet_feed = create_feed(
title="Fedora Planet",
subtitle="",
feed_url="http://fedoraplanet.org/",
url="http://fedoraplanet.org/",
author="")
gnhome_planet_feed = create_feed(
title="Planet gnhome",
subtitle="",
feed_url="http://planet.gnome.org/",
url="http://planet.gnome.org/",
author="")
openstack_planet_feed = create_feed(
title="Open Stack",
subtitle="",
feed_url="http://planet.openstack.org/",
url="http://planet.openstack.org/",
author="")
python_planet_feed = create_feed(
title="Planet Python",
subtitle="",
feed_url="http://planetpython.org/",
url="http://planetpython.org/",
author="")
fedora_planet(fedora_planet_feed)
gnhome_planet(gnhome_planet_feed)
openstack_planet(openstack_planet_feed)
python_planet(python_planet_feed)
fedora_planet_str = str(fedora_planet_feed)
gnhome_planet_str = str(gnhome_planet_feed)
openstack_planet_str = str(openstack_planet_feed)
python_planet_str = str(python_planet_feed)
f = open('myfile.xml','w')
f.write(str(fedora_planet_str))
f.write(str(gnhome_planet_str))
f.write(str(openstack_planet_str))
f.write(str(python_planet_str))
f.close()