A Dashing widget for displaying the number of unplayed PocketCasts podcasts in an account.
See a live demo here.
Due to the fact that PocketCasts does not, at current time of writing, have a public API, I wrote some code to scrape the data off their webpage. Due to extensive use of JavaScript on the PocketCasts webplayer, I chose an approach using Watir that uses a browser's webdriver. This proved tricky to test on Heroku at the time so I decided to run the script on a personal machine at home and push the data to my Dashing application.
Setup the following environment variables:
POCKET_CASTS_EMAIL
POCKET_CASTS_PASSWORD
AUTH_TOKEN
: the auth token of your Dashing application
Add it to your Dashing application's Gemfile:
gem 'mechanize'
gem 'watir-webdriver'
and run bundle install
.