let's create a function to extract the data from a blog post