Skip to content

Instantly share code, notes, and snippets.

@prisync
Created December 28, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prisync/bda9ad40759ae4c91457b7c365177bbe to your computer and use it in GitHub Desktop.
Save prisync/bda9ad40759ae4c91457b7c365177bbe to your computer and use it in GitHub Desktop.
for url in urls:
payload = {
# A URL can be added to a particular product and we need product_id of that.
# Use the product_id you've written down in the previous example.
'product_id': 2055805,
# Just one URL at a time
'url': url
}
response = make_request('/add/url', 'post', payload)
print(response.status_code, response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment