Python 2: urllib.urlopen, xml.etree.ElementTree: Parse Planet Ubuntu Feed: Titles, Links

Parse RSS Feed for URLs and their Titles

nick3499
3 min readDec 14, 2017

In a Unix-like CLI, enter the following:

$ python2 planet_ubuntu_feed.py

The Planet Ubuntu RSS Feed will be parsed for links and their titles. Example given below:

Feed title: Planet Ubuntu
Feed site: http://planet.ubuntu.com/
Item Title: Ubuntu Insights: FIPS 140-2 Certified Modules for Ubuntu 16.04 LTS
Item Link: https://insights.ubuntu.com/2017/12/13/fips-140-2-certified-modules-for-ubuntu-16-04-lts/
Item Title: Chris Glass: Magic URLs in the Ubuntu ecosystem
Item Link: https://tribaal.io/magic-urls.html
Item Title: Rhonda D'Vine: #metoo
Item Link: http://rhonda.deb.at/blog/2017/12/13#metoo
Item Title: Ubuntu Insights: Ubuntu Server Development Summary – 12 Dec 2017
Item Link: https://insights.ubuntu.com/2017/12/12/ubuntu-server-development-summary-12-dec-2017/
Item Title: Sean Davis: Development Release: Xfce PulseAudio Plugin 0.3.4
Item Link: https://smdavis.us/2017/12/12/development-release-xfce-pulseaudio-plugin-0-3-4/
Item Title: Kubuntu General News: Testing a switch to default Breeze-Dark Plasma theme in Bionic daily isos and default settings
Item Link: https://kubuntu.org/news/testing-a-switch-to-breeze-dark-plasma-theme-by-default/
Item Title: Costales: 3rd Ubucon Europe 2018
Item Link: http://thinkonbytes.blogspot.com/2017/12/3rd-ubucon-europe-2018.html
Item Title: Costales: Podcast Ubuntu y otras hierbas S02E03: Distros derivadas, entrevista uNav, Linux on Galaxy
Item Link: http://thinkonbytes.blogspot.com/2017/12/podcast-ubuntu-y-otras-hierbas-s02e03.html
Item Title: Clive Johnston: Send SMS messages from your Plasma Desktop
Item Link: https://clivejo.com/send-sms-messages-from-your-plasma-desktop/
Item Title: Ubuntu Podcast from the UK LoCo: S10E40 – Clammy Eminent Spot - Ubuntu Podcast
Item Link: http://ubuntupodcast.org/2017/12/08/s10e40-clammy-eminent-spot/
Item Title: Stephen Michael Kellat: Not Messing With Hot Wheels Car Insertion
Item Link: http://skellat.freeshell.org/blog/not-messing-with-hot-wheels-car-insertion.html
Item Title: Robert Ancell: Setting up Continuous Integration on gitlab.gnome.org
Item Link: http://bobthegnome.blogspot.com/2017/12/setting-up-continuous-integration-on.html
Item Title: Lubuntu Blog: Join Phabricator
Item Link: http://lubuntu.me/2658-2/
Item Title: Simos Xenitellis: How to migrate LXD from DEB/PPA package to Snap package
Item Link: https://blog.simos.info/how-to-migrate-lxd-from-deb-ppa-package-to-snap-package/
Item Title: Sebastian Heinlein: Aptdaemon
Item Link: http://www.glatzor.de/blog/blog-details/article/aptdaemon/
Item Title: Raphaël Hertzog: My Free Software Activities in November 2017
Item Link: https://raphaelhertzog.com/2017/12/03/my-free-software-activities-in-november-2017/
Item Title: Clive Johnston: Bye bye LastPass, hello bitwarden
Item Link: https://clivejo.com/bye-bye-lastpass-hello-bitwarden/
Item Title: Simos Xenitellis: How to set the timezone in LXD containers
Item Link: https://blog.simos.info/how-to-set-the-timezone-in-lxd-containers/
Item Title: Daniel Pocock: Hacking with posters and stickers
Item Link: https://danielpocock.com/hacking-with-posters-and-stickers
Item Title: Ubuntu Podcast from the UK LoCo: S10E39 – Hysterical Daffy Furniture - Ubuntu Podcast
Item Link: http://ubuntupodcast.org/2017/11/30/s10e39-hysterical-daffy-furniture/
Item Title: Kubuntu General News: Kubuntu Kafe Live approaching
Item Link: https://kubuntu.org/news/kubuntu-kafe-live-approaching/
Item Title: Chris Glass: Serving a static blog from a Snap
Item Link: https://tribaal.io/serving-a-static-blog-from-a-snap.html
Item Title: Stephen Michael Kellat: Looking Towards A Retrospective Future
Item Link: http://skellat.freeshell.org/blog/looking-towards-a-retrospective-future.html
Item Title: Riccardo Padovani: A generic introduction to Gitlab CI
Item Link: https://rpadovani.com/introduction-gitlab-ci
Item Title: Sebastian Kügler: KDE’s Goal: Privacy
Item Link: https://vizZzion.org/blog/2017/11/kdes-goal-privacy/
Item Title: Jono Bacon: WeWork to Aquire Meetup.com: Some Thoughts
Item Link: http://www.jonobacon.com/2017/11/27/wework-aquire-meetup-com-thoughts/
Item Title: Sean Davis: Development Release: Xfce PulseAudio Plugin 0.3.3
Item Link: https://smdavis.us/2017/11/27/development-release-xfce-pulseaudio-plugin-0-3-3/
Item Title: Sam Hewitt: Linux Themes & Third-Party Icons
Item Link: http://samuelhewitt.com/blog/2017-11-26-linux-themes-third-party-icons
Item Title: Sebastian Dröge: GStreamer Rust bindings release 0.9
Item Link: https://coaxion.net/blog/2017/11/gstreamer-rust-bindings-release-0-9/
Item Title: Shih-Yuan Lee: debian-installer (d-i) and preseed.cfg
Item Link: http://fourdollars.blogspot.com/2017/11/debian-installer-d-i-and-preseedcfg.html
Item Title: Full Circle Magazine: Full Circle Magazine #127
Item Link: https://fullcirclemagazine.org/2017/11/24/full-circle-magazine-127/
Item Title: Daniel Pocock: Free software in the snow
Item Link: https://danielpocock.com/free-software-in-the-snow-2018
Item Title: Sebastian Kügler: IKEA Trådfri first impressions
Item Link: https://vizZzion.org/blog/2017/11/ikea-tradfri-first-impressions/
Item Title: David Tomaschik: 2017 Hacker Holiday Gift Guide
Item Link: https://systemoverlord.com/2017/11/22/2017-hacker-holiday-gift-guide.html
Item Title: Ubuntu LoCo Council: Ubuntu LoCo Council Election Results
Item Link: http://lococouncil.ubuntu.com/2017/11/21/ubuntu-loco-council-election-results/
Item Title: Andres Rodriguez: MAAS 2.3.0 (final) Released!
Item Link: http://www.roaksoax.com/2017/11/maas-2-3-0-final-released

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet