-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new demo: my word #60
Conversation
@xuanqinanhai Can you help to test this? Many thanks. I'm running out of time slots. If it is tested OK for both of you, I'll merge it. You can also ask people in the group to test the app. |
it works well ! @hupili |
How about another platform, e.g. renren? |
I tested... it failed The reason should be the different structure between the |
I see... When you de-duplicate messages by signature, can you exclude 'ID' from the string? Using fields in 'parsed' usually suffices. If you must use ID (e.g. same user ask same word at the same platform at the same time... ), please use ID as a whole. MessageID object can be Similarly, when you refer to other objects in this project, please do not use non-mandatory fields if possible. Since data types are heterogeneous, we only guarantee mandatory fields are there. In this way, you can make your app generalize to all platforms without worrying what is that platform (the purpose of SNSAPI). I added some description in the doc string. http://snsapi.ie.cuhk.edu.hk/doc/snsapi.html#module-snsapi.snstype |
I have replace 's.ID.id' with 's.ID'. @xuanqinanhai Please help test it on renren. I can't authorized from renren. |
for s in status_list: | ||
s.show() | ||
msg_string = "".join( unicode(x) for x in \ | ||
[s.parsed.time, s.ID, s.parsed.username, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use s.ID instead of s.ID.id
... Are you running this app under account "@林惠文" or "@this_is_test"? |
I used my renren account 林惠文 |
I see. That explains the screenshot. Once somebody deploys this app under a "@dict" account, others can add ask trans by posting status. The last piece is the notification platform. Once ready, it should be able to handle notification seamlessly. |
we can use xiaohuangji's notification handler system directly. filter the @ information,and then reply . right? |
@xuanqinanhai yes. I was wrapping xiaohuangji to SNSAPI Language last Sunday. Half done. |
new demo: word translation via home_timeline and reply
looking forward to it. and hope to give me some time to finish github's pull request. little tired recently. |
Take your time~ I'm also in all kinds of rush recently... |
mate , take care of your body and health. these are the most important things than others. |
I only test this demo in sina weibo.