There is no such thing as “outside earth’s gravity pull”. You can compensate with “centrifugal” force but you’ll need to position the point of mass in geostationary orbit and hang the rest of the structure off it (idea known as space elevator). However, there is no material whose tensile strength will support its own weight at this length. Steel cables max out at a few hundred meters at surface gravity.