I bought a secondhand book once, that absolutely reeked of cigarette smoke. Absolutely disgusting! I did some googling and found a recommendation to put it in a box, cover with ground coffee, seal up and leave for a week or two. I did, and it worked, but I found a cleaner copy of the book not long afterwards and ditched the dirty one.