Skip to content

Instantly share code, notes, and snippets.

@feriat
Created August 11, 2015 20:03
Show Gist options
  • Save feriat/a49ab0b165917efb146f to your computer and use it in GitHub Desktop.
Save feriat/a49ab0b165917efb146f to your computer and use it in GitHub Desktop.
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