This article at livestrong reminded me of when I had tapeworms as a child. The cure I was given was a pill called "povan", which worked like a wonder.
Whenever we got sick, my mom and dad would discuss what home remedies they used to use, or what remedies were common in the past. The past being around 1930 to 1960. According to my father, my aunt had tapeworms, and she was given sulfur mixed with molasses, followed by a raw onion.
You can get sulfur from a garden center, or at some spice shops. Molasses is at most grocery stores, as is the onion.
Tapeworms don't like sulfur. It causes them to release from the intestinal walls. The sulfur in molasses and the raw onion must both contain enough sulfur to weaken the worms enough so they will be expelled.
That said, my aunt had heart trouble later in life. So maybe she didn't rid herself of all her worms. Worms tend to migrate around the body, and some will go into the heart.
(Edit: I read that eating pumpkin seeds with the shells on also helps. The shells or skins are rough and kind of hard to swallow. They probably don't get digested in the stomach, and push through the intestines, collecting worms.)