I need to add a number into a site which is then processes in python:
text = "4122822"
get = 'http://example.com/api/jobs/text/'
I want text to go where I wrote it inside the link. Is there a way to do it? Thanks
I need to add a number into a site which is then processes in python:
text = "4122822"
get = 'http://example.com/api/jobs/text/'
I want text to go where I wrote it inside the link. Is there a way to do it? Thanks
You just need to append it like below :
text = "4122822"
get = 'http://example.com/api/jobs/'+text +'/'
Python3:
get = f'http://example.com/api/jobs/{text}/'
Python2:
get = 'http://example.com/api/jobs/{}/'.format(text)