For this recipe you need fig leaf pumpkins - Spanish calabaza cidra - because only these have the hairy consistency. Unfortunately, they are rarely available in this country. There is no point in using the common pumpkins, it only becomes normal jam.
Cut the fig-leaf pumpkins into small pieces (be careful with mature specimens a saw may be necessary) and boil them with a little water for about an hour. Remove the pits and peel from the pulp, which has crumbled into fibers. Squeeze the fibers well in a sieve. Weigh the dry fibers and add the same amount of sugar to a saucepan. Cook everything until the fibers have turned a golden yellow color. The finished angel hair can be filled into jars or used to make ensaimadas and similar Spanish recipes.