Skip to content
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

Twitter feature enhanced #130

Merged
merged 12 commits into from
Jul 15, 2018
Merged

Twitter feature enhanced #130

merged 12 commits into from
Jul 15, 2018

Conversation

hmangukia
Copy link
Contributor

The following enhancements are made:

Say "get my tweets" to get top 10 tweets made by the user.
Say "get my twitter friends" or "get twitter friends" to get a list of everyone you follow on twitter.

@@ -80,7 +80,7 @@ List of the things that B.E.N.J.I. can do:
* Create a file(txt, docx, pptx,xlsx, vsdx and rtf supported)
* Podcast
* Calculator
* Get top 10 tweets
* Twitter(get top 10 tweets, get friends)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get friend's tweets, or get follower list Twitter does have a concept of friends, only follower and following. 😛


* "***get tweets***" Get latest 10 tweets from timeline. For this an app is to be registered at https://apps.twitter.com/ (if confused, have a look at https://spring.io/guides/gs/register-twitter-app/). A new file named "twitterCredentials.py" is to be made in the windows folder. Save the consumer key, consumer secret, access token, access token secret with the names consumer_key, consumer_secret, access_token, access_secret repectively in the "twitterCredentials.py". Speak/type "get tweets" and top 10 tweets will be shown, also when and by whom it was created.
* Get latest 10 tweets done by the user. Speak/type "get my tweets" and top 10 tweets done by the user(you) will be shown with the time when it was tweeted
* You can get a list of your friends(everyone you follow) from twitter by saying "get twitter friends" or "get my twitter friends"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again using the term friends with Twitter is a misnomer, maybe we should do You can get a list of everyone you follow from twitter by saying "get people I follow on twitter"

windows/benji.py Outdated
print("By ", status.user.screen_name, " at ", status.user.created_at)

#Get friends from twitter
elif link[-2] == "twitter" and link[-1] == "friends":
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we will have to change this w.r.t following and not friends

@hmangukia
Copy link
Contributor Author

@sara-02 have made the suggested changes :)

Copy link

@sara-02 sara-02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hmangukia Thanks, we are good now :)

@the-ethan-hunt
Copy link
Owner

@sara-02 I am sure you have properly reviewed the PR. Should we merge it? 😄

@the-ethan-hunt the-ethan-hunt merged commit 5581bdf into the-ethan-hunt:master Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants