Skip to content

Instantly share code, notes, and snippets.

@kenmickles
Created November 23, 2012 23:47
Show Gist options
  • Save kenmickles/4137740 to your computer and use it in GitHub Desktop.
Save kenmickles/4137740 to your computer and use it in GitHub Desktop.
Import current eBay auction price into Google Doc
# For an active auction, use:
=IMPORTXML("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140888284446", "//span[@itemprop='price']")
# For a completed auction, use:
=IMPORTXML("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140888284446", "//span[@class='vi-VR-cvipPrice']")
@kenmickles
Copy link
Author

Note that URLs with a #hash will fail to import for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment