I finally started updating this site again. Nice new graphics, fresh typography (via Google Web Fonts). I even took the time to code a parser for Pinterest’s JSON files, so that I could include my Pinboards here (fresh content for this site that I don’t have to code, equals a plus in my book).
So I do all of that and what happens just a week after going live? The JSON files are killed off…just my luck.
To remedy the situation, I’ve written a swanky new php class for scraping said data from my Pinterest page. It’s not very extensive, but it serves my purposes and helped introduce me to the PHP Simple HTML DOM Parser. If you’d like to use it, feel free to download it below. I’d love to hear about it in the comment section if you do you use it.
NOTE: Not that I get a huge amount of traffic, but it's probably best not to scrape their site every time mine (or yours) reloads, right? That said, the class is designed to only scrape data from Pinterest once an hour. If your testing, just bypass the section within loadHTML().