IMDb does not store movie scripts, but you may find some websites that do it. Samewise, box-office results (number of entries) may be obtained, some of them for free. So you could link the data somehow.
Just beware that the scripts you may find on the web might more or less differ from the actual movie, due to on-set changes and final editing.
Hi, Rafael Sá. IMDb does not contain the complete content of movie scripts. There is an unrelated website that facilitates such a purpose. As for box office information, there is a partner of IMDb that may document numbers of tickets sold by particular movies: Box Office Mojo.