Skip to content

Instantly share code, notes, and snippets.

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 jreese802/165772c1058fa95bb018e7d927a4e6f4 to your computer and use it in GitHub Desktop.
Save jreese802/165772c1058fa95bb018e7d927a4e6f4 to your computer and use it in GitHub Desktop.
import requests
from urllib import quote_plus
browser_list_name = quote_plus("browser list name")
from_account = {
'email' : '',
'authkey' : ''
}
to_account = {
'email' : '',
'authkey' : ''
}
response_browser_list = requests.get('https://app.crossbrowsertesting.com/api/v3/screenshots/browserlists',
auth=(from_account['email'],from_account['authkey'])).json()[0]['browsers']
browser_string = ''
for i in response_browser_list:
browser_string += (i['parameter'] + ',')
requests.post('https://app.crossbrowsertesting.com/api/v3/screenshots/browserlists',
auth=(to_account['email'],to_account['authkey']),
data={'browser_list_name': browser_list_name,
'browsers':browser_string})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment