Skip to content

Instantly share code, notes, and snippets.

@Lohit9
Created June 13, 2016 17:31
Show Gist options
  • Save Lohit9/0498e604134c6f2e51fb9c02aadd7cd4 to your computer and use it in GitHub Desktop.
Save Lohit9/0498e604134c6f2e51fb9c02aadd7cd4 to your computer and use it in GitHub Desktop.
Py script to autofill MWS scratchpad details : To use install Splinter - ' [sudo] pip install splinter '
# Please fill in your MWS credentials:
SellerId = 'xxx'
MWSAuthToken = 'xxx'
AWSAccessKeyId = 'xxx'
SecretKey = 'xxx'
FeedType = '_POST_PRODUCT_DATA_'
MarketplaceId = 'xxx'
#---------------------------------- script begins here --->
import time
from splinter import Browser
browser = Browser('chrome')
browser.visit('https://mws.amazonservices.ca/scratchpad/index.html')
browser.select('apicall', 'SubmitFeed')
browser.fill('merchantID', SellerId)
browser.fill('authToken', MWSAuthToken)
browser.fill('awsAccountID', AWSAccessKeyId)
browser.fill('secretKey', SecretKey)
print "I was unable to autofill the Feedtype and Marketplace id, please fill them manually \n"
print "Your Feed Type is: " + FeedType
print "Your MarketPlace Id is: " + MarketplaceId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment