Wholefoods
Getting groceries delivered has been a bit of a challenge recently. I had been getting deliveries from Reading Market (through Mercado which subcontracts DoorDash(?)). Their lead times are now over 2 weeks. It appears WholeFoods is taking a different approach by releasing delivery slots at random times throughout the day. However, every time I checked, there was no delivery available. So I wrote a little Selenium/Python-based scraper that logs me in to Amazon and checks on delivery availability at WholeFoods at pre-specified intervals. When a slot becomes available, the script generates an email (sent via my gmail) to let me know. It was successful at snagging me a delivery yesterday. About 15 minutes after I submitted my order, the delivery slots were unavailable again. So far, it appears that delivery slots were available approximately 25% of the day – thus I anticipate this tool will be really helpful for the remainder of the Covid-19 shut-down.
https://github.com/yangyang2000/WholeFoodsDelivery
Note, to use, your Gmail account must be set up to enable “less secure apps.”
IG Scraper
I also started a project on the effectiveness of IG promotions and needed an automation software to download photos and videos from IG accounts of top brands. This one’s still a work in progress, but it currently allows you to log in and download photos from any user account that is public or followed by you. The eventual aim here is to algorithmically quantify the characteristics of posts and IG “aesthetic” on user engagement for top brands.
https://github.com/yangyang2000/IGScraper
Requirements:
- Python 3.x
- Chrome Browser
- A compatible Chromedriver
- Standard Python libraries: urllib, bs4, json, re, time