Created
June 13, 2016 17:31
-
-
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 '
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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