Search found 81 matches
by awasu.user
Tue Jul 25, 2017 11:05 am
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 581

Re: Return channel as JSON and XML

Because Awasu has been written over a period of many years, and things that might make sense now maybe didn't back then The idea was always to let information be extracted out of Awasu based on content, not on structure e.g. "what stories are there about subject X within the past 3 days?"...
by awasu.user
Sat Jul 22, 2017 4:31 pm
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 581

Re: Return channel as JSON and XML

From beginning I start with definition: Channel pack - few channels on the same name fx. "culture", "politics". I want by one API call get unread articles from channel pack fx. "culture". I need URL , title , publishing date and Channel Name . General idea is use more R...
by awasu.user
Sat Jul 22, 2017 12:46 pm
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 581

Return channel as JSON and XML

Intro To get all articles in channels I use API call in format: http://localhost:2604/channels/get?format=json&token=xxx&id=100 Result: HTML file and making processing data. Workaround Set report template with structure and check processing by grouping in Awasu: title;url;published;channeln...
by awasu.user
Fri Jul 21, 2017 5:28 am
Forum: Awasu - Extensions
Topic: How get channel lis in specific report?
Replies: 2
Views: 289

How get channel lis in specific report?

Introduction Fx. I create folder NEWS and subfolders Europe , Asia , North America . Next I create reports: All News - I get report from all folders in main folder NEWS (with CNN channel within) and subfolders Europe, Asia, North America Europe News - I get report from Europe News - BBC Asia News -...
by awasu.user
Thu Jul 13, 2017 8:11 pm
Forum: Awasu - Extensions
Topic: How to use the API to check if an item has been read
Replies: 3
Views: 289

How to use the API to check if an item has been read

I try get JSON data from Awasu with code: phrase = "Donald Trump" import requests print("Check in Awasu: ", phrase) a_search = "http://localhost:2604/search/query" opt = {} opt["token"] = "GYmh3B" opt["age"] = "1" opt["p"...
by awasu.user
Sat Jul 08, 2017 11:55 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

Allright. I try another aproach - get JSON data from start - to save time needed to parsing HTML. I will do as you sugest. Thank you!
by awasu.user
Sat Jul 08, 2017 11:17 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

My final purpose is get from Awasu informations: channel name fx. BBC article title fx. "London is awaking" article url fx "http://www.bbc.co.uk/blabla" published date fx "2017-07-08". Using $/channels/get generates HTML output. I would JSON in out so I put in URL "...
by awasu.user
Sat Jul 08, 2017 10:06 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

Thank you for all your words! I try extend my coding with calling API. Before that I make template: { "articles": { {%REPEAT% Channels-IfGroupingItems} {%?GROUP-ITEMS-BY-CHANNEL%} "{%CHANNEL-METADATA% name}": [ {%ENDIF%} {%REPEAT% FeedItems} { "url":"{%ITEM-METADAT...
by awasu.user
Mon Jun 26, 2017 8:10 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

It's working! After days of tries I get basic skeleton. import nltk from nltk import word_tokenize from nltk.util import ngrams import re from tqdm import * #progress bars https://github.com/noamraph/tqdm from bs4 import BeautifulSoup class Awasu: class io_data: def open(): a_report_file = 'awasu-te...
by awasu.user
Sat Jun 24, 2017 9:54 pm
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

I'm not an expert on Unicode, but the ftfy (fixes text for you) library may help. I tried it ftfy.fix_encoding() before and was not working for me. Bug is placed when I read file or where I save it. Using pass I can pass error, but is lost one feed. I'm still learning Python :oops: So I start with ...
by awasu.user
Wed Jun 21, 2017 5:37 pm
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

Re: [Plugin] How add, use, modified report HTML file

Yah, Unicode and encodings is difficult You really need to understand the basics of how it all works to have any chance of working with this stuff After few day of research I fully agree. At the start I think that UTF-8 of Awasu HTML report file make situation easier. I was wrong. * When I was kid ...
by awasu.user
Wed Jun 21, 2017 4:53 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 2266

[Plugin] How add, use, modified report HTML file

Intro I'm start coding plugin for Awasu in Python 3.6.1. For now idea is simply. I generate report from Awasu. Open in python, modified, save and open in browser. Question On header i have # -*- coding: utf-8 -*- . For open I use: a_html_reportdata = urllib.request.urlopen(pathlib.Path(processed_fi...
by awasu.user
Mon Mar 27, 2017 3:19 am
Forum: Awasu - General Discussion
Topic: Can't start portable installation of Awasu
Replies: 1
Views: 562

Can't start portable installation of Awasu

I create mobile version of Awasu by creation file _PORTABLE . I have to reinstall OS. After that Awasu not working. I have error: Initialization failed. Can't open INI File and path. I check path - file Config INI exist in Users\portable\. I open file and at the first look is OK. I don't know what I...
by awasu.user
Mon Mar 20, 2017 6:12 pm
Forum: Awasu - Extensions
Topic: How to get channels out of Awasu using the API?
Replies: 1
Views: 702

How to get channels out of Awasu using the API?

I start play with Awasu API. I'm stucking on simple thing. How return items from feed by API? I try: http://localhost:2604/channels/get?format=xml&verbose=1&token=xxx&id=300&showFeedItemsMode=all In some channels working and get something and another I get nothing (only channel name ...

Go to advanced search