MobileBlur

Diff
Login

Differences From Artifact [ae6b12dd5f]:

To Artifact [61898c0aad]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15




# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations

from pprint import pprint

newsblur = local_import("newsblur")

username = ""
password = ""
threshold = 0
thresholds = ["nt", "ps", "ng"]  # indices -1, 0, 1 for negative, neutral, ane positive inhelligence filters

def view():
    newsblur.login(username, password)
    return 





<



<
<
<
<
<
<
<

<
<
>
>
>
>
1

2
3
4







5


6
7
8
9
# -*- coding: utf-8 -*-


from pprint import pprint








def view():


    stories = newsblur.feed(request.args[0])["stories"]
    feeds = newsblur.feeds(flat=True)["feeds"]
    feed = [feed for feed in feeds.itervalues() if feed["id"]==int(request.args[0])][0]
    return dict(stories=stories, feed=feed)