Comment 74 for bug 1055766

Revision history for this message
Brayden Hull (brayden-hull) wrote :

I was thinking of making a new report for this but I feel it is somewhat related.

I just had a brain wave and felt that another way of supporting Canonical would be to give product suggestions whilst the user is idle at the terminal for a certain period of time. Clearly if someone is idle they're just bored and the helpful suggestions provided by Canonical would aid them in freeing themselves from bored despair.

I've had a look at the Amazon RSS API and have found that this would be rather easy to implement.

Periodically bash should call this Python script that I've made (and will attach) which would randomly select out of 20 suggestions. It'll provide a title and URL so the user can buy. I'd love to implement a mechanism where it can be purchased by just clicking on the URL however it is not possible to implement via RSS.

All Canonical needs to do is substitute the current example user ID with their own. Feedparser is not included in Ubuntu by default but is part of the repo with the package name: "python-feedparser - Universal Feed Parser for Python" for 2.7 and "python3-feedparser - Universal Feed Parser for Python" for 3.2