DeastinY / CoffeeRecommendationBot

Recommends a coffee to Twitterusers in need !
MIT License
8 stars 14 forks source link

Crawl currently available drinks from Starbucks #5

Open DeastinY opened 7 years ago

DeastinY commented 7 years ago

Not sure if this is even possible. Do they have a online list of drinks ?

shauryachawla commented 7 years ago

By 'crawl' do you mean to get a database saved offline about the drinks? Or should it be dynamically searching for drinks? (Considering that the information IS available on their website)

Wowu commented 7 years ago

They've it here: http://www.starbucks.com/menu/catalog/product?drink=brewed-coffee#view_control=product

shauryachawla commented 7 years ago

Okay so I can make a function to dynamically create a list of available drinks, everytime a user demands for it. The thing is - I am familiar with Facebook Chatbots, not Twitter chatbots. It will take a bit of time to get my head around the procedure for Twitter bots.

DeastinY commented 7 years ago

@emorres25 sounds pretty good. Please keep in mind though, that the bot is supposed to be a little satirical, so don't get too realistic ^^ Maybe another idea would be to update the database once every few days/weeks with a crontab. Anyways - implementing the crawling it self will have to be done in any case :wink:

shauryachawla commented 7 years ago

I made a python script to crawl over the page @Wowu had mentioned. I don't know how to attach it to the main program though. Anyway, I will just make a PR, please have the script do whatever it was supposed to be made for. :)

DeastinY commented 7 years ago

Looking real good. Will still keep the issue open for further discussion on how to implement it.

shauryachawla commented 7 years ago

I think that we need to run coffee_cawler.py to update the json file we have.