deastiny / coffeerecommendationbot Goto Github PK
View Code? Open in Web Editor NEWRecommends a coffee to Twitterusers in need !
License: MIT License
Recommends a coffee to Twitterusers in need !
License: MIT License
I just had this idea. What da' ya' say?
Improve drink generation algorithm
SPAM MORE
Add more drinks
Provide customized drinks
Add some documentation
Clean up the mess
Right now builds fail because of it - I removed it for now, but kinda have little idea of what I'm doing.
@DeastinY Please merge my incoming pull request before merging any other prs.
This issue fixes build failing after merging in pull request #34 which solves issue #16
Build for all Python 3 env fails as xrange
has been replaced with range
My pr contains a dirty workaround to make builds pass (hopefully the workaround works)
add background and update the README.md, and seeing if I can contribute to the documentation updated in #15
Via crontab the bot should tweet the coffee of the day at a fixed time every day. In addition to that the bot should always be running to monitor it's timeline and respond to mentions.
Make the code PEP-8 compliant.
In #15 functions have already been documented and https://github.com/the-zebulan pointed out a bunch of PEP-8 issues.
These need to be fixed as well !
Not sure if this is even possible. Do they have a online list of drinks ?
It isn't really neccessary to have two different scripts, merging them would make this a bit more pythonistic ;)
Just a heads up, this is my first time contributing to a project, so please bear with me.
I'm looking at adding a feature to provide customized drink options! My thought process behind the implementation is creating a console menu with options to either send a randomly generated tweet or to customize one of the attributes of the drink itself.
From the second option, another menu would be displayed to choose which attribute to change. After selecting the attribute, the user would be able to enter in their own text, return to the customization menu and finally send the tweet. So they can customize as much, or as little, as they want.
As far as the implementation of the code, i'm looking at having the code flow like below.
main_menu()-->customize_order_menu()-->customize_attribute-->go back to customize_order_menu()-->make_tweet()-->send_tweet()
So the program will end up behaving a bit differently when I'm done. If anyone has any thoughts or suggestions, I'd love to hear them.
I feel it would be a great idea to allow a twitter user to ask the CoffeeBot for a current popular coffee type.
"roasts" category was added as a certain type of hot coffee to order. Not sure what to do with this category though.
This could possibly be implemented by tweeting to a random follower a popular coffee every once in a while. What do you guys think?
I'm not sure if this 100% compiles with Twitter's botting guidelines.
On spamming everyone that is available the bot got banned in a minute - it should be possible though to write messages to people talking about #coffee e.g. every once a day .
https://support.twitter.com/articles/490683
Just move the contents for an easy #hacktober
Hey @DeastinY
Kudos on making this bot.
While reading the code of the crawler "coffe_crawler.py", I find that we are using urllib2
for our HTTP connections. However, its API is a bit broken and too tedious at times. I would like to suggest that we move to Requests library. Here is a discussion on the three libraries: http://stackoverflow.com/questions/2018026/what-are-the-differences-between-the-urllib-urllib2-and-requests-module
Let me know what you think about this. I would be more than happy to make the changes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.