was the movie based on any literature?
Yes, The film came from the comic book.
Spider-Man 2

Raimi's inspiration for the film came from the comic book debut of Doctor Octopus in 1964, the 1966 story arc "If This Be My Destiny...!", and the 1967 story arc "Spider-Man No More!". Principal photography began in April 2003 in New York City and also took place in Los Angeles.
when did the second spider man movie come out In 2004. who was casted for the title role? The cast are Tobey Maguire alongside Kirsten Dunst, James Franco, Alfred Molina, Rosemary Harris, and Donna Murphy. who is the antagonist in this film? Dr. Otto Octavius. where did the filming take place? It was shot on over one hundred sets and locations, beginning with Chicago, New York City, Los Angeles. who were responsible for graphical effects in the film? Edge FX. has the film won any award? Yes, It has won Academy Award for Best Visual Effects, Saturn Awards, Best Actor, Best Director, Best Fantasy Film, Best Special Effects, and Best Writer, 2004's ten best films. can you name any other film that has won or nominated under the first award category? "Wings", "King Kong", "Spawn of the North". are there any rules for a film to abide to be nominated for this award? There are ten shortlisted finalists, produce five nominees. No more than four people may be nominated for a single film. who produced the second part of the film discussed above? James Keltie.
wiki:13082401
Spider-Man 2 [SEP] Introduction
Meanwhile, Dr. Otto Octavius becomes a diabolical villain after a failed experiment kills his wife and leaves him neurologically fused to mechanical tentacles. Spider-Man must stop him from successfully recreating the dangerous experiment, while dealing with a subconscious desire to stop being Spider-Man that is stripping him of his powers. Raimi's inspiration for the film came from the comic book debut of Doctor Octopus in 1964, the 1966 story arc "If This Be My Destiny...!", and the 1967 story arc "Spider-Man No More!". Principal photography began in April 2003 in New York City and also took place in Los Angeles.