Search found 81 matches
by awasu.user
Mon Jul 31, 2017 7:37 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

Oops! You've right! :oops: I closed tag correctly and still can get right output. Problem is with putting UTF-8 to console. On test charset characters Awasu is talking about mistake... :wall: I'm looking for alternative to print to write output.
by awasu.user
Mon Jul 31, 2017 5:19 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

For test I use code: rss_data = u'''<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title><![CDATA[W3Schools Home Page]</title> <link><![CDATA[https://www.w3schools.com]</link> <description><![CDATA[PL characters: ąęłńóźć! ?!Free web building tuto...
by awasu.user
Sun Jul 30, 2017 5:46 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

OK, I understand URL params very well, but if I understand you sugest solution: 1. Create New Channel 2. For each channel set: c:\awasu_plg.py with options: c:\awasu_plg.py -opt-one c:\awasu_plg.py -opt-two and read settings from INI based on option. In my scenario is ~170 dynamic calculated channel...
by awasu.user
Sun Jul 30, 2017 11:07 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

Now, I'm not sure what you're asking... When I'm waiting for answer I test data from file as you sugested before to validate result before running script. So I'm asking about two things: 1. How print result from python script to Awasu [ Resolved by GLOBAL.INI ] 2. How format output for Awasu to det...
by awasu.user
Sun Jul 30, 2017 8:11 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

Except I use Python 3 error is the same. It should be error from script (print format). Error: Can't determine the feed type. python.exe: can't open file '%L': [Errno 2] No such file or directory For quick test I use code too: rss_data = ''' <?xml version="1.0" encoding="UTF-8" ?...
by awasu.user
Sun Jul 30, 2017 7:35 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

File .py after clicking run script in Windows correctly so problem is in another place. What I do? Steps: Ctrl+N 1. Select: Generated by a channel plugin 2. In Plugin: I click on folder icon and select .py file. On plugin I have full path C:\script\awasu_pg.py 3. Click Next 4. Result: Error is showi...
by awasu.user
Sat Jul 29, 2017 6:13 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

I declared utf-8 and try open python file in Awasu wizard. I get error: Error: Can't determine the feed type. Channel feed: C:\Python\Python36\python.exe: can't open file '%L': [Errno 2] No such file or directory Could you explain me what is going on? Structure is correct with RSS 2.0 specification....
by awasu.user
Sat Jul 29, 2017 2:21 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

I test output from channel generation. I get in Awasu:

Code: Select all

XML parse failed (4:L43:C14): not well-formed (invalid token)


It's another isseu with character coding? I simply use print("") in Python... Should I decode it to UTF-8?
by awasu.user
Sat Jul 29, 2017 1:42 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Re: Generating few channel with one plgin

I'll try. Before that I have some technical question. When article get states:

new
unread?

From Awasu I get only new state, but not unread. Could you explain me relation between them? (I want match only unread articles).
by awasu.user
Sat Jul 29, 2017 6:37 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 916

Generating few channel with one plgin

I have script returned data from Awasu, but I want get results in format below to Awasu: Channel_name_result1 feed 1 feed 2 feed n Channel_name_result2 feed 1 feed 2 feed n Channel_name_resultn feed 1 feed 2 feed n So then in docs code for this is: Name this part of code " Generating Channel &q...
by awasu.user
Thu Jul 27, 2017 6:36 pm
Forum: Awasu - Extensions
Topic: How create report by API?
Replies: 1
Views: 208

How create report by API?

Calling API: http://localhost:2604/reports/create?format=json&token=xxx I try create report, but I get "errorMsg": "Missing request data." In doc is http://awasu.com/help/3.1/For%20developers/Awasu%20API/03-Reports.html#ReportConfig : <dataSource type="channelFolders&quo...
by awasu.user
Thu Jul 27, 2017 12:07 pm
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 445

Re: How get API unread articles from channel as JSON

I fix what I can and full tempate is: {%REPEAT% Channels-IfGroupingItems insert=","}{%?GROUP-ITEMS-BY-CHANNEL%}{"{%CHANNEL-METADATA% name}":[ {%REPEAT% FeedItems insert=","}{ "id": "{%ITEM-METADATA% AwasuId}", "title": "{%ITEM-METADATA...
by awasu.user
Thu Jul 27, 2017 8:14 am
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 445

Re: How get API unread articles from channel as JSON

I try modified template: {%REPEAT% Channels-IfGroupingItems insert=","}{%?GROUP-ITEMS-BY-CHANNEL%}{{%CHANNEL-METADATA% name}:[ {%REPEAT% FeedItems insert=","}{ "id": "{%ITEM-METADATA AwasuId%}", "title": {%ITEM-METADATA% name!}, "published"...
by awasu.user
Wed Jul 26, 2017 8:18 pm
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 445

How get API unread articles from channel as JSON

How use API to get unread articles from channel as JSON? I remove my previous code, but I try something like that: {%REPEAT% Channels-IfGroupingItems} {%?GROUP-ITEMS-BY-CHANNEL%} { "{%CHANNEL-METADATA% name}": { {%REPEAT% FeedItems} "{%id%}": { "title": "{%ITEM-MET...

Go to advanced search