Use the build_trends_publisher() function for parsing. Added documentation