Created
August 11, 2015 20:03
-
-
Save feriat/a49ab0b165917efb146f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import urllib2 | |
import json | |
ll = urllib2.urlopen('http://worldfreightrates.com/en/calculator/ocean/rate?fromId=50eb29010f0880372c627af9&toId=50eb29010f0880372c627a38&fromName=Rotterdam%2C+Netherlands&toName=Los+Angeles%2C+United+States&oceanType=FCL&commodityName=Packaging+%26+Printing&commodityValue=25000&includeInsurance=false&includeReefer=false&includeHazardous=false&weight=&unit=lb&length=&width=&height=&containerSize=40&_=1439321618401') | |
result = json.load(ll) | |
print result['rate'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment