aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-02-24 12:21:44 +0100
committercedricbonhomme <devnull@localhost>2010-02-24 12:21:44 +0100
commitdbda004a50ca53ff1a00f048fc463fb266c402ba (patch)
tree7da50d57b659c06d5fa7d3951b2ff6f1900ca6c0 /pyAggr3g470r.py
parentIt is now possible to automatically post an article to your delicious account. (diff)
downloadnewspipe-dbda004a50ca53ff1a00f048fc463fb266c402ba.tar.gz
newspipe-dbda004a50ca53ff1a00f048fc463fb266c402ba.tar.bz2
newspipe-dbda004a50ca53ff1a00f048fc463fb266c402ba.zip
It is now possible to share articles with delicious, Digg, reddit, Scoopeo and Blogmarks.
Diffstat (limited to 'pyAggr3g470r.py')
-rw-r--r--pyAggr3g470r.py34
1 files changed, 32 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index d5b6f673..7c45cc9c 100644
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -3,7 +3,7 @@
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 0.8 $"
-__date__ = "$Date: 2010/02/23 $"
+__date__ = "$Date: 2010/02/24 $"
__copyright__ = "Copyright (c) 2010 Cedric Bonhomme"
__license__ = "GPLv3"
@@ -29,6 +29,14 @@ path = {'/css/style.css': {'tools.staticfile.on': True, \
'tools.staticfile.filename':path+'css/style.css'}, \
'/css/img/delicious.png': {'tools.staticfile.on': True, \
'tools.staticfile.filename':path+'css/img/delicious.png'}, \
+ '/css/img/digg.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':path+'css/img/digg.png'}, \
+ '/css/img/reddit.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':path+'css/img/reddit.png'}, \
+ '/css/img/scoopeo.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':path+'css/img/scoopeo.png'}, \
+ '/css/img/blogmarks.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':path+'css/img/blogmarks.png'}, \
'/var/histogram.png':{'tools.staticfile.on': True, \
'tools.staticfile.filename':path+'var/histogram.png'}}
@@ -257,9 +265,31 @@ class Root:
html += "No description available."
html += """<hr />\n<a href="%s">Complete story</a>\n<br />\n""" % \
(article[3].encode('utf-8'),)
+ # Share this article:
+ # on delicious
html += """<a href="http://delicious.com/post?url=%s&title=%s"
rel="noreferrer" target="_blank">\n
- <img src="/css/img/delicious.png" title="Post on del.iciou.us" /></a>""" % \
+ <img src="/css/img/delicious.png" title="Share on del.iciou.us" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Digg
+ html += """<a href="http://digg.com/submit?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/digg.png" title="Share on Digg" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on reddit
+ html += """<a href="http://reddit.com/submit?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/reddit.png" title="Share on reddit" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Scoopeo
+ html += """<a href="http://scoopeo.com/scoop/new?newurl=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/scoopeo.png" title="Share on Scoopeo" /></a> &nbsp;&nbsp; """ % \
+ (article[3].encode('utf-8'), article[2].encode('utf-8'))
+ # on Blogmarks
+ html += """<a href="http://blogmarks.net/my/new.php?url=%s&title=%s"
+ rel="noreferrer" target="_blank">\n
+ <img src="/css/img/blogmarks.png" title="Share on Blogmarks" /></a>""" % \
(article[3].encode('utf-8'), article[2].encode('utf-8'))
html += "<hr />\n" + htmlfooter
return html
bgstack15