Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you make multiple calls from a list ? #40

Open
totheM opened this issue Jul 30, 2017 · 0 comments
Open

How do you make multiple calls from a list ? #40

totheM opened this issue Jul 30, 2017 · 0 comments

Comments

@totheM
Copy link

totheM commented Jul 30, 2017

Hello

I'm looking to loop print synonyms for each item from my list
myList = ["First", "Second", "Third"]

tried few loop methods with no success, please help

to print them manually 1 by 1 the command is

response = unirest.get("https://wordsapiv1.p.mashape.com/words/first/synonyms",
headers={
"X-Mashape-Key": "**X-Mashape-Key",
"Accept": "application/json"
}
)

response.body

this will print synonyms for word "First"

How do i loop to print body for all the words in my list ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant