I currently work in a lab which studies the interaction between chronic pain and brain function. So I figured a semi-productive way to merge my current work with the aims of this blog would be to practice extracting clinical-pain-related data from the internet. Specifically, because I regularly talk to patients who have tried multiple treatments for their chronic pain, I wanted to get an idea of what the internet thought of these treatments. I used Beautifulsoup in Python to scrape user comments from the first chronic pain forum listed on Google (www.spine-health.com). I scraped over 100k comments from forums related to chronic pain, lower back pain, upper back pain, and neck/cervical pain. Interested in seeing which treatments were most associated with the most positive (or negative comments), I assessed the tone of forum comments using Sentiment Analysis in Python. Some examples of comments with their associated sentiment scores are listed below (scores ran...