support wrote: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 detect multi channel in one script [Still
unresolved].
I extend question 2.
a) I'm asking not how make script, but how channel shoudl be correct format on output for Awasu. Basic RSS channel structure is:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>https://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
Now I'm duplicating channel tags and Awasu detect only first. In suggested example is generated only one feed by running, but my final looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page 1</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>
https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>
https://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
<channel>
<title>Google</title>
<link>https://www.google.com</link>
<description>Web search engine</description>
<item>
<title>Google News</title>
<link>https://news.google.com</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>Amazon</title>
<link>https://www.amazon.com</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
I duplicated simply channel tags by my design. My desired output is:
Code: Select all
channel_name_first
item1
...
itemn
channel_name_second
item1
...
itemn
I don't know how correct my data for Awasu here.
b) I'm still looking good way to print UTF in Windows from Python to console, because I have output in Awasu channel wizard with generated RSS and error:
Code: Select all
XML parse failed (4:L39:C49): not well-formed (invalid token)
I hope now is more clear to you what I am asking about
