Many of these books are available online.
Text Mining and Visualization: Case Studies Using Open Source Tools -online edition ordered.
Topic Modeling: A Basic Introduction - from the Journal of Digital Humanities
The Programming Historian from the website: "peer-reviewed tutorials that help humanists learn a wide range of digital tools, techniques and workflows to facilitate research and teaching."
Bot or Not - example of Twitter analysis conducted with Python by data scientist Erin Shellman.
Does Sentiment Analysis Work? - review of sentiment analysis using R from data scientist David Robinson.
Python web scraping tutorial using BeautifulSoup from Dataquest
How to make a racist AI without really trying from ConceptNet
Well documented tutorial and write-up of an analysis using R from The Pudding