Skip to content

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

Description

@totheM

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions