Using Python 3.6.4 on MacBook Pro. Is there a smoother way in adding text file to be appended into the URL address bar?
Excuse my ignorance, I'm a novice to Python. And this was my best shot...
import urllib
import urllib.request
import urllib.parse
text = "Global ambitions with regional insight is a common mantra among local firms but not many have the financial backing and pedigree of this leading financial institution. While many brokerages have shut their doors or downsized, this trading firm has continued to grow and there are no plans to slow down now. Already with a portfolio of substantial institutional and private clients, it is important to offer a diverse range of products to meet demand.
Skills."
site_url = "http://www.wdylike.appspot.com/?"
file_contents_in_url = urllib.parse.urlencode({'q' : text})
check = site_url + file_contents_in_url
#print(check)
url = urllib.request.urlopen(check)
url_bytes = url.read()
#print(url_bytes)
site_url_contents = url_bytes.decode("utf8")
#print(site_url_contents)