Use sed?
sed -e "s/\(.*\)/'\1"https://stackoverflow.com/"
Or, as commented below, if the directories might contain apostrophes (nightmare if they do) use this alternate
sed -e "s/"https://stackoverflow.com/"\\\\''/g;s/\(.*\)/'\1"https://stackoverflow.com/"