NEW YORK — Amazon is no longer selling a self-published guide for pedophiles.

It wasn’t immediately clear whether Amazon.com Inc. had pulled the item, or whether the author withdrew it. Amazon did not immediately return messages Thursday.

The book, “The Pedophile’s Guide to Love and Pleasure: a Child-lover’s Code of Conduct,” offers advice to pedophiles on how to make a sexual encounter with a child as safe as possible. It includes first-person descriptions of such encounters, purportedly written from a child’s point of view.

Once discovered Wednesday, the book triggered outrage from commenters on sites such as Twitter. Some people threatened to boycott the online store until Amazon removed the book. Two petitions on Facebook alone won more than 13,500 supporters.