Alfanous-team / alfanous

Alfanous is an Arabic search engine API provides the simple and advanced search in Quran , more features and many interfaces...
http://www.alfanous.org/
GNU Affero General Public License v3.0
263 stars 89 forks source link

Twitter Application #243

Open assem-ch opened 11 years ago

assem-ch commented 11 years ago

A twitter application that post an Ayah every day linked to a searched query in the website www.alfanous.org

walidlaribi commented 11 years ago

Very interesting !

Would love to contribute !

assem-ch commented 11 years ago

No one has started this yet. I don't know how complicated it is but you may start with reading the twitter API docs, https://dev.twitter.com/docs

zsmahi commented 11 years ago

Here is an example of the twitter application developed at KSU ( King Saoud University)

http://quran.ksu.edu.sa/tw/

walidlaribi commented 11 years ago

Great thanks !

I already had an experience with Twitter API. I will start on working on it after a couple of weeks, you can count on me ;)

KacemRostom commented 11 years ago

Hi Assem, Could you explain more clearly how Ayas are chosen to be published on Twitter?

assem-ch commented 11 years ago

I am not sure about How they are doing it in http://quran.ksu.edu.sa/tw/, however this is my point of view:

assem-ch commented 11 years ago

This is how to request ayahs in Alfanous: Each aya is identified by the global identifier "gid" that has values from 1 to 6236 such as 1 is the first aya of alfatiHa and 6236 is the last aya of an-nass... the query is like that "gid:1", "gid:6236"..

the request to the API would be: http://www.alfanous.org/jos2?action=search&query=gid:6236

the request to the website would be: http://www.alfanous.org/?query=gid%3A6236&view=default&sortedby=score&translation=en.transliteration&recitation=14

assem-ch commented 11 years ago

https://code.google.com/p/python-twitter/

zsmahi commented 10 years ago

we cas use the tweepony library https://github.com/Mezgrman/TweetPony

I've worked with, here is an example of an automatic tweet in my account https://twitter.com/zsmahi/status/448540387133911040

ahimta commented 10 years ago

I think we should approach by one of two ways.

First, is there an API that already does that (send tweets at fixed intervals). If so we use it.

Otherwise if possible we build a small webapp that does this by using Alfanous API externally and use this webapp for any other similar features that could be implemented externally.

assem-ch commented 10 years ago

@ahimta sending tweets requires the app to be authenticated in twitter so I think it should be a webapp. yet, we can use for it Django as same as the main website.

I don't think the application is hard, it just need a long breath to get it done.

zsmahi commented 10 years ago

Yes, sending tweets requires to be authenticated, web apps is the best solution, we can imagine it as a page web where users can subscribe to the App, once subscribed the APP can post automatically on their walls.